5
0
mirror of https://github.com/laomms/wxhelper.git synced 2025-01-11 02:45:36 +08:00
wxhelper-new/inc/noncopyable.h

11 lines
236 B
C
Raw Normal View History

2024-06-16 13:17:24 +08:00
#ifndef BASE_NONCOPYABLE_H_
#define BASE_NONCOPYABLE_H_
class NonCopyable {
protected:
NonCopyable() {}
~NonCopyable() {}
NonCopyable(const NonCopyable&) = delete;
NonCopyable& operator=(const NonCopyable&) = delete;
};
#endif