Common/Dependencies: Use deletion for declaring non-copyable

This is the preferred method in modern C++.
This commit is contained in:
Connor McLaughlin 2022-05-09 20:45:40 +10:00 committed by refractionpcsx2
parent d2347d9972
commit d19c767ad1
1 changed files with 3 additions and 3 deletions

View File

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