git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libc++ - Many fixes and cleanups
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libc++.so_src
/
include_exp
/
new
diff --git
a/Usermode/Libraries/libc++.so_src/include_exp/new
b/Usermode/Libraries/libc++.so_src/include_exp/new
index
f1ed0ab
..
b895832
100644
(file)
--- 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_
#ifndef _LIBCXX_NEW_
#define _LIBCXX_NEW_
+
#include "cstddef"
//extern void* operator new(size_t size) throw (::std::bad_alloc);
#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;
}
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
#endif
// vim: ft=cpp
UCC
git Repository :: git.ucc.asn.au