Rename nocopy to noncopyable.

This commit is contained in:
Markus F.X.J. Oberhumer
2007-11-07 23:13:20 +01:00
parent 07baed1581
commit 0d8e16d5c8
3 changed files with 14 additions and 12 deletions
+6 -4
View File
@@ -379,12 +379,14 @@ inline unsigned UPX_MIN(unsigned a, unsigned b) { return a < b ? a : b; }
#define ByteArray(var, size) Array(unsigned char, var, size)
struct nocopy
struct noncopyable
{
inline nocopy() {}
protected:
inline noncopyable() {}
inline ~noncopyable() {}
private:
nocopy(const nocopy &); // undefined
nocopy& operator=(const nocopy &); // undefined
noncopyable(const noncopyable &); // undefined
const noncopyable& operator=(const noncopyable &); // undefined
};