diff options
Diffstat (limited to 'libstdc++')
-rw-r--r-- | libstdc++/include/new | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libstdc++/include/new b/libstdc++/include/new index 0253e8b..c5a43de 100644 --- a/libstdc++/include/new +++ b/libstdc++/include/new @@ -13,19 +13,19 @@ namespace std { void* operator new(std::size_t); void* operator new[](std::size_t); -void operator delete(void*); -void operator delete[](void*); +void operator delete(void*) throw(); +void operator delete[](void*) throw(); void* operator new(std::size_t, const std::nothrow_t&); void* operator new[](std::size_t, const std::nothrow_t&); -void operator delete(void*, const std::nothrow_t&); -void operator delete[](void*, const std::nothrow_t&); +void operator delete(void*, const std::nothrow_t&) throw(); +void operator delete[](void*, const std::nothrow_t&) throw(); inline void* operator new(std::size_t, void* p) { return p; } inline void* operator new[](std::size_t, void* p) { return p; } // these next two are not really required, since exceptions are off -inline void operator delete(void*, void*) { } -inline void operator delete[](void*, void*) { } +inline void operator delete(void*, void*) throw() { } +inline void operator delete[](void*, void*) throw() { } } // extern C++ |