aboutsummaryrefslogtreecommitdiffstats
path: root/libc/private/bionic_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/private/bionic_macros.h')
-rw-r--r--libc/private/bionic_macros.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/private/bionic_macros.h b/libc/private/bionic_macros.h
index 61794bd54..491b3ace0 100644
--- a/libc/private/bionic_macros.h
+++ b/libc/private/bionic_macros.h
@@ -20,8 +20,8 @@
// DISALLOW_COPY_AND_ASSIGN disallows the copy and operator= functions.
// It goes in the private: declarations in a class.
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
- TypeName(const TypeName&); \
- void operator=(const TypeName&)
+ TypeName(const TypeName&) = delete; \
+ void operator=(const TypeName&) = delete
// A macro to disallow all the implicit constructors, namely the
// default constructor, copy constructor and operator= functions.
@@ -30,7 +30,7 @@
// that wants to prevent anyone from instantiating it. This is
// especially useful for classes containing only static methods.
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
- TypeName(); \
+ TypeName() = delete; \
DISALLOW_COPY_AND_ASSIGN(TypeName)
#define BIONIC_ALIGN(value, alignment) \