summaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++/new
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-21 16:50:29 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-21 16:50:29 +0000
commit270d165e3b466227e5d5995afe109b5ee309e6c2 (patch)
tree8b9a189f1f15205c1301f96492baaf74f25c84a7 /libstdc++-v3/libsupc++/new
parent32fb15163ee712f3c6fd9f2c9932cafeb869d817 (diff)
downloadgcc-270d165e3b466227e5d5995afe109b5ee309e6c2.tar.gz
2000-10-21 Benjamin Kosnik <bkoz@purist.soma.redhat.com>
* docs/links.html: Add links to defects list, standards FAQ. * testsuite/21_strings/ctor_copy_dtor.cc (test01): Disable tests with string creation that allocate huge ammounts of memory. * include/c/bits/std_cstddef.h: Put size_t, ptrdiff_t in namepace std. 2000-10-21 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> * libsupc++/exception.cc: Use namespace std. * libsupc++/new: DITTO. * libsupc++/new_op.cc: DITTO. * libsupc++/new_opnt.cc: DITTO. * libsupc++/new_opv.cc: DITTO. * libsupc++/new_opvnt.cc: DITTO. * libsupc++/tinfo.cc: DITTO. * libsupc++/tinfo.h: DITTO. * libsupc++/vec.cc: DITTO. * libsupc++/Makefile.am: Blank lines removal. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36995 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++/new')
-rw-r--r--libstdc++-v3/libsupc++/new13
1 files changed, 6 insertions, 7 deletions
diff --git a/libstdc++-v3/libsupc++/new b/libstdc++-v3/libsupc++/new
index a10f28dded9..cb66dacc444 100644
--- a/libstdc++-v3/libsupc++/new
+++ b/libstdc++-v3/libsupc++/new
@@ -32,7 +32,6 @@
#pragma interface "new"
#include <cstddef>
-//#include <stddef.h>
#include <exception>
extern "C++" {
@@ -52,18 +51,18 @@ namespace std {
} // namespace std
// replaceable signatures
-void *operator new (size_t) throw (std::bad_alloc);
-void *operator new[] (size_t) throw (std::bad_alloc);
+void *operator new (std::size_t) throw (std::bad_alloc);
+void *operator new[] (std::size_t) throw (std::bad_alloc);
void operator delete (void *) throw();
void operator delete[] (void *) throw();
-void *operator new (size_t, const std::nothrow_t&) throw();
-void *operator new[] (size_t, const std::nothrow_t&) throw();
+void *operator new (std::size_t, const std::nothrow_t&) throw();
+void *operator new[] (std::size_t, const std::nothrow_t&) throw();
void operator delete (void *, const std::nothrow_t&) throw();
void operator delete[] (void *, const std::nothrow_t&) throw();
// default placement versions of operator new
-inline void *operator new(size_t, void *place) throw() { return place; }
-inline void *operator new[](size_t, void *place) throw() { return place; }
+inline void *operator new(std::size_t, void *place) throw() { return place; }
+inline void *operator new[](std::size_t, void *place) throw() { return place; }
} // extern "C++"
#endif