OLD | NEW |
1 /* | 1 /* |
2 | 2 |
3 Copyright (C) 2010 Apple Inc. All rights reserved. | 3 Copyright (C) 2010 Apple Inc. All rights reserved. |
4 | 4 |
5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
6 modification, are permitted provided that the following conditions | 6 modification, are permitted provided that the following conditions |
7 are met: | 7 are met: |
8 1. Redistributions of source code must retain the above copyright | 8 1. Redistributions of source code must retain the above copyright |
9 notice, this list of conditions and the following disclaimer. | 9 notice, this list of conditions and the following disclaimer. |
10 2. Redistributions in binary form must reproduce the above copyright | 10 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 class nullptr_t { }; | 50 class nullptr_t { }; |
51 } | 51 } |
52 extern std::nullptr_t nullptr; | 52 extern std::nullptr_t nullptr; |
53 | 53 |
54 #endif | 54 #endif |
55 | 55 |
56 #if COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS) | 56 #if COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS) |
57 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \ | 57 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \ |
58 private: \ | 58 private: \ |
59 ClassName(int) = delete | 59 ClassName(int) = delete |
| 60 #define WTF_DISALLOW_ZERO_ASSIGNMENT(ClassName) \ |
| 61 private: \ |
| 62 ClassName& operator=(int) = delete |
60 #else | 63 #else |
61 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \ | 64 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \ |
62 private: \ | 65 private: \ |
63 ClassName(int) | 66 ClassName(int) |
| 67 #define WTF_DISALLOW_ZERO_ASSIGNMENT(ClassName) \ |
| 68 private: \ |
| 69 ClassName& operator=(int) |
64 #endif | 70 #endif |
65 | 71 |
66 #endif | 72 #endif |
OLD | NEW |