Define EPICS_NOT_COPYABLE¶
Defined in File noDefaultMethods.h
Define Documentation¶
-
EPICS_NOT_COPYABLE(CLASS)¶
Disable implicit copyable.
For >= C++11 explicitly disable. Attempts to copy/assign will fail to compile.
- Author
mrk EPICS_NOT_COPYABLE(CLASS) Prevent the default copy constructor and assignment operator from being usable.
For C++98 make these private, and don’t implement them. User code will fail to compile, implementation code will fail to link.
struct MyClass { EPICS_NOT_COPYABLE(MyClass) public: ... };
Note
This macro contains ‘private:’.