This repository was archived by the owner on Jun 30, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,21 @@ namespace std{
36
36
_UCXXEXPORT new_handler set_new_handler(new_handler new_p) throw();
37
37
}
38
38
39
-
40
- _UCXXEXPORT void* operator new(std::size_t numBytes) throw(std::bad_alloc);
39
+ #if (__cplusplus < 201703L)
40
+ _UCXXEXPORT void* operator new(std::size_t numBytes) throw(std::bad_alloc);
41
+ #else
42
+ _UCXXEXPORT void* operator new(std::size_t numBytes) noexcept(false);
43
+ #endif
41
44
_UCXXEXPORT void operator delete(void* ptr) throw();
42
45
#if __cpp_sized_deallocation
43
46
_UCXXEXPORT void operator delete(void* ptr, std::size_t) throw();
44
47
#endif
45
48
46
- _UCXXEXPORT void* operator new[](std::size_t numBytes) throw(std::bad_alloc);
49
+ #if (__cplusplus < 201703L)
50
+ _UCXXEXPORT void* operator new[](std::size_t numBytes) throw(std::bad_alloc);
51
+ #else
52
+ _UCXXEXPORT void* operator new[](std::size_t numBytes) noexcept(false);
53
+ #endif
47
54
_UCXXEXPORT void operator delete[](void * ptr) throw();
48
55
#if __cpp_sized_deallocation
49
56
_UCXXEXPORT void operator delete[](void * ptr, std::size_t) throw();
You can’t perform that action at this time.
0 commit comments