You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
486 B
42 lines
486 B
#ifndef GLW_NONCOPYABLE_H |
|
#define GLW_NONCOPYABLE_H |
|
|
|
#include "./common.h" |
|
|
|
namespace glw |
|
{ |
|
|
|
namespace detail |
|
{ |
|
|
|
class NonCopyable |
|
{ |
|
public: |
|
|
|
typedef void BaseType; |
|
typedef NonCopyable ThisType; |
|
|
|
NonCopyable(void) |
|
{ |
|
; |
|
} |
|
|
|
private: |
|
|
|
NonCopyable(const ThisType & that) |
|
{ |
|
(void)that; |
|
} |
|
|
|
ThisType & operator = (const ThisType & that) |
|
{ |
|
(void)that; |
|
return (*this); |
|
} |
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
#endif // GLW_NONCOPYABLE_H
|
|
|