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 () { ; } nocopy () { ; }
private: private:
nocopy (const nocopy &) { ; } nocopy (const nocopy &) = delete;
nocopy& operator =(const nocopy &) { unreachable (); return *this; } nocopy& operator =(const nocopy &) = delete;
}; };
#endif #endif