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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 #else | 47 #else |
48 | 48 |
49 namespace std { | 49 namespace std { |
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) |
| 57 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \ |
| 58 private: \ |
| 59 ClassName(int) = delete |
| 60 #else |
| 61 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \ |
| 62 private: \ |
| 63 ClassName(int) |
56 #endif | 64 #endif |
| 65 |
| 66 #endif |
OLD | NEW |