diff options
Diffstat (limited to 'Source/WTF/wtf/Noncopyable.h')
| -rw-r--r-- | Source/WTF/wtf/Noncopyable.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Source/WTF/wtf/Noncopyable.h b/Source/WTF/wtf/Noncopyable.h index f6bdfbb40..c64cf63c2 100644 --- a/Source/WTF/wtf/Noncopyable.h +++ b/Source/WTF/wtf/Noncopyable.h @@ -23,16 +23,9 @@ #include <wtf/Compiler.h> -#if COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS) - #define WTF_MAKE_NONCOPYABLE(ClassName) \ - private: \ - ClassName(const ClassName&) = delete; \ - ClassName& operator=(const ClassName&) = delete; -#else - #define WTF_MAKE_NONCOPYABLE(ClassName) \ - private: \ - ClassName(const ClassName&); \ - ClassName& operator=(const ClassName&) -#endif +#define WTF_MAKE_NONCOPYABLE(ClassName) \ + private: \ + ClassName(const ClassName&) WTF_DELETED_FUNCTION; \ + ClassName& operator=(const ClassName&) WTF_DELETED_FUNCTION; \ #endif // WTF_Noncopyable_h |
