OSDN Git Service

2004-03-24 Dhruv Matani <dhruvbird@gmx.net>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Mar 2004 21:40:01 +0000 (21:40 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Mar 2004 21:40:01 +0000 (21:40 +0000)
commit98e744693bb32e059f2525974f09b35f69b097e5
tree0d0ec11fccc6f462f017f07a58957ab4728af127
parent1d297472634a3ca5d2f25e9e0bd78c89bc4b9923
2004-03-24  Dhruv Matani  <dhruvbird@gmx.net>

* ext/malloc_allocator.h: Fixed the construct function to call
global placement new instead of assignment. Added a check after
the return from malloc to check whether returned pointer is NULL,
and if so, throw std::bad_alloc().
* ext/debug_allocator.h: Added a check in the deallocate function
to check whether the user has passed a NULL pointer or not.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79934 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/debug_allocator.h
libstdc++-v3/include/ext/malloc_allocator.h