mirror of https://github.com/PCSX2/pcsx2.git
Common/Dependencies: Use deletion for declaring non-copyable
This is the preferred method in modern C++.
This commit is contained in:
parent
d2347d9972
commit
d19c767ad1
|
@ -118,9 +118,9 @@ static const pxEnumEnd_t pxEnumEnd = {};
|
|||
//
|
||||
#ifndef DeclareNoncopyableObject
|
||||
#define DeclareNoncopyableObject(classname) \
|
||||
private: \
|
||||
explicit classname(const classname&); \
|
||||
classname& operator=(const classname&)
|
||||
public: \
|
||||
classname(const classname&) = delete; \
|
||||
classname& operator=(const classname&) = delete
|
||||
#endif
|
||||
|
||||
// --------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue