diff --git a/nocopy.hpp b/nocopy.hpp index 590655e8..d8c2f53e 100644 --- a/nocopy.hpp +++ b/nocopy.hpp @@ -27,8 +27,8 @@ class nocopy { nocopy () { ; } private: - nocopy (const nocopy &) { ; } - nocopy& operator =(const nocopy &) { unreachable (); return *this; } + nocopy (const nocopy &) = delete; + nocopy& operator =(const nocopy &) = delete; }; #endif