diff options
author | Brad King <brad.king@kitware.com> | 2017-04-24 13:46:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-04-24 13:46:16 (GMT) |
commit | 2455d735a1fe4c9068515ff0795ebb3f45b8e739 (patch) | |
tree | a20c4c2f443db0f798315ac77a7a0c9b29b8726d /Source/cmConfigure.cmake.h.in | |
parent | 96b202fad52fe89a9b1c736c26d25df8c38e5d21 (diff) | |
parent | 5d1671324bbcf0826b32c4c1691ae0f1041430ed (diff) | |
download | CMake-2455d735a1fe4c9068515ff0795ebb3f45b8e739.zip CMake-2455d735a1fe4c9068515ff0795ebb3f45b8e739.tar.gz CMake-2455d735a1fe4c9068515ff0795ebb3f45b8e739.tar.bz2 |
Merge topic 'eq-delete'
5d167132 cmConfigure: provide macros CM_EQ_DELETE and CM_DISABLE_COPY
Acked-by: Kitware Robot <kwrobot@kitware.com>
Reviewed-by: Craig Scott <craig.scott@crascit.com>
Merge-request: !746
Diffstat (limited to 'Source/cmConfigure.cmake.h.in')
-rw-r--r-- | Source/cmConfigure.cmake.h.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmConfigure.cmake.h.in b/Source/cmConfigure.cmake.h.in index e30b43f..970fde5 100644 --- a/Source/cmConfigure.cmake.h.in +++ b/Source/cmConfigure.cmake.h.in @@ -21,6 +21,7 @@ #cmakedefine CMAKE_USE_MACH_PARSER #cmakedefine CMAKE_USE_LIBUV #cmakedefine CMake_HAVE_CXX_AUTO_PTR +#cmakedefine CMake_HAVE_CXX_EQ_DELETE #cmakedefine CMake_HAVE_CXX_MAKE_UNIQUE #cmakedefine CMake_HAVE_CXX_NULLPTR #cmakedefine CMake_HAVE_CXX_OVERRIDE @@ -30,6 +31,12 @@ #define CMAKE_BIN_DIR "/@CMAKE_BIN_DIR@" #define CMAKE_DATA_DIR "/@CMAKE_DATA_DIR@" +#ifdef CMake_HAVE_CXX_EQ_DELETE +#define CM_EQ_DELETE = delete +#else +#define CM_EQ_DELETE +#endif + #ifdef CMake_HAVE_CXX_NULLPTR #define CM_NULLPTR nullptr #else @@ -42,4 +49,8 @@ #define CM_OVERRIDE #endif +#define CM_DISABLE_COPY(Class) \ + Class(Class const&) CM_EQ_DELETE; \ + Class& operator=(Class const&) CM_EQ_DELETE; + #endif |