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