X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fnew;fp=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fnew;h=b895832905eeef4b40cca37466f3ac58a3c57a16;hb=0f68a84d600ae8c88e444552c07f04b0dbd67003;hp=f1ed0abb64e85596ec5ed99f02b30321f3debc75;hpb=e67fbecfc88b7a54d0f1fc7d0c06c9e2eeee8f96;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc++.so_src/include_exp/new b/Usermode/Libraries/libc++.so_src/include_exp/new index f1ed0abb..b8958329 100644 --- a/Usermode/Libraries/libc++.so_src/include_exp/new +++ b/Usermode/Libraries/libc++.so_src/include_exp/new @@ -8,6 +8,7 @@ #ifndef _LIBCXX_NEW_ #define _LIBCXX_NEW_ + #include "cstddef" //extern void* operator new(size_t size) throw (::std::bad_alloc); @@ -22,6 +23,22 @@ inline void* operator new[](size_t /*size*/, void* ptr) throw() { return ptr; } +#include "exception" + +namespace std { + +class bad_alloc: + public ::std::exception +{ +public: + bad_alloc() noexcept; + ~bad_alloc() noexcept; + + const char *what() const noexcept; +}; + +} // namespace std + #endif // vim: ft=cpp