This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
gcc/libstdc++-v3 ChangeLog include/ext/malloc_ ...
- From: bkoz at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org, libstdc++-cvs at gcc dot gnu dot org
- Date: 30 Apr 2004 03:25:08 -0000
- Subject: gcc/libstdc++-v3 ChangeLog include/ext/malloc_ ...
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: bkoz@gcc.gnu.org 2004-04-30 03:25:08
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/ext: malloc_allocator.h debug_allocator.h
Log message:
2004-04-29 Dhruv Matani <dhruvbird@gmx.net>
* include/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().
* include/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&only_with_tag=gcc-3_4-branch&r1=1.2224.2.91&r2=1.2224.2.92
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/malloc_allocator.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3.4.2&r2=1.3.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/debug_allocator.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3.4.1&r2=1.3.4.2