| Index: Source/wtf/Allocator.h
|
| diff --git a/Source/wtf/Allocator.h b/Source/wtf/Allocator.h
|
| index 29adf01267e863cbee05e0b6c84552998bdba987..6e4c8cdfd106660dae9461f59d7c585a22252c63 100644
|
| --- a/Source/wtf/Allocator.h
|
| +++ b/Source/wtf/Allocator.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef WTF_Allocator_h
|
| #define WTF_Allocator_h
|
|
|
| +#include "wtf/StdLibExtras.h"
|
| +
|
| namespace WTF {
|
|
|
| // Classes that contain references to garbage-collected objects but aren't
|
| @@ -45,7 +47,12 @@ namespace WTF {
|
|
|
| #define STATIC_ONLY(Type) \
|
| private: \
|
| - Type() = delete;
|
| + Type() = delete; \
|
| + Type(const Type&) = delete; \
|
| + Type& operator=(const Type&) = delete; \
|
| + void* operator new(size_t) = delete; \
|
| + void* operator new(size_t, NotNullTag, void*) = delete; \
|
| + void* operator new(size_t, void*) = delete;
|
|
|
| #if COMPILER(CLANG)
|
| #define STACK_ALLOCATED() \
|
|
|