Use deleted methods to implement nocopy
This commit is contained in:
parent
78427bc45a
commit
8f796bd214
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user