gcc/libstdc++-v3 ChangeLog include/ext/debug_a ...
bkoz@gcc.gnu.org
bkoz@gcc.gnu.org
Thu Mar 25 00:16:00 GMT 2004
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: bkoz@gcc.gnu.org 2004-03-24 21:40:02
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/ext: debug_allocator.h malloc_allocator.h
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2422&r2=1.2423
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/debug_allocator.h.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/malloc_allocator.h.diff?cvsroot=gcc&r1=1.7&r2=1.8
More information about the Libstdc++-cvs
mailing list