Use deleted methods to implement nocopy

This commit is contained in:
Danny Robson 2011-08-13 15:03:45 +10:00
parent 78427bc45a
commit 8f796bd214

View File

@ -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