src
forbid_copy.h
Go to the documentation of this file.
1 #ifndef _RE2C_UTIL_FORBID_COPY_
2 #define _RE2C_UTIL_FORBID_COPY_
3 
4 // must be used at the end of class definition
5 // (since this macro changes scope to private)
6 #define FORBID_COPY(type) \
7  private: \
8  type (const type &); \
9  type & operator = (const type &)
10 
11 #endif // _RE2C_UTIL_FORBID_COPY_