18 lines
No EOL
310 B
C++
18 lines
No EOL
310 B
C++
|
|
#ifndef SPECTRE_CORE_NONCOPYABLE_H
|
|
#define SPECTRE_CORE_NONCOPYABLE_H
|
|
|
|
class NonCopyable
|
|
{
|
|
protected :
|
|
|
|
NonCopyable() {}
|
|
|
|
private :
|
|
|
|
// Skip implementation to trigger compiler error.
|
|
NonCopyable(const NonCopyable&);
|
|
NonCopyable& operator =(const NonCopyable&);
|
|
};
|
|
|
|
#endif /* SPECTRE_CORE_NONCOPYABLE_H */ |