Usermode/libc++ - Many fixes and cleanups
[tpg/acess2.git] / Usermode / Libraries / libc++.so_src / include_exp / new
index f1ed0ab..b895832 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au