diff options
author | Dhruv Matani <dhruvbird@gmx.net> | 2004-03-24 21:40:01 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2004-03-24 21:40:01 +0000 |
commit | 58c959212f4871518e4d0d5af8555759cd0cf7a9 (patch) | |
tree | 0d0ec11fccc6f462f017f07a58957ab4728af127 /Makefile.in | |
parent | 8367b9c1e9097b487ce56448daec7dfbcc1f09cf (diff) | |
download | gcc-58c959212f4871518e4d0d5af8555759cd0cf7a9.tar.gz |
malloc_allocator.h: Fixed the construct function to call global placement new instead of assignment.
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.
From-SVN: r79934
Diffstat (limited to 'Makefile.in')
0 files changed, 0 insertions, 0 deletions