21 lines
380 B
C++
21 lines
380 B
C++
|
|
#ifndef SPECTRE_CORE_NONCOPYABLE_H
|
|
#define SPECTRE_CORE_NONCOPYABLE_H
|
|
|
|
namespace sp {
|
|
|
|
class NonCopyable
|
|
{
|
|
protected :
|
|
|
|
NonCopyable() = default;
|
|
~NonCopyable() = default;
|
|
|
|
// Delete Copy constructor and assignment.
|
|
NonCopyable(const NonCopyable&) = delete;
|
|
NonCopyable& operator =(const NonCopyable&) = delete;
|
|
};
|
|
|
|
} // namespace sp
|
|
|
|
#endif /* SPECTRE_CORE_NONCOPYABLE_H */
|