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