Actually use = delete to mark constructors and operators we want to not exist. Just...
authorEnrico Granata <egranata@apple.com>
Wed, 26 Oct 2016 18:12:52 +0000 (18:12 +0000)
committerEnrico Granata <egranata@apple.com>
Wed, 26 Oct 2016 18:12:52 +0000 (18:12 +0000)
rdar://28960209

llvm-svn: 285216

lldb/include/lldb/lldb-defines.h

index a8e6776..a1318f4 100644 (file)
 ///     assignment operators in C++ classes.
 //----------------------------------------------------------------------
 #define DISALLOW_COPY_AND_ASSIGN(TypeName)                                     \
-  TypeName(const TypeName &);                                                  \
-  const TypeName &operator=(const TypeName &)
+  TypeName(const TypeName &) = delete;                                         \
+  const TypeName &operator=(const TypeName &) = delete
 
 #endif // #if defined(__cplusplus)