pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk): Deal properly with exceptio...
authorJoachim Kuebart <kuebart@mathematik.uni-ulm.de>
Mon, 11 Oct 2004 08:19:35 +0000 (08:19 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 11 Oct 2004 08:19:35 +0000 (08:19 +0000)
commite55096f0ce036bb3c694c0b3662dc36b149e57bd
tree1fccc1bbed722203c613963a29a7d6c90b490dd2
parentd90aed0dc6fd1b91075b9ab284da91bafc4b968b
pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk): Deal properly with exceptions thrown by ::operator new(size_t).

2004-10-11  Joachim Kuebart  <kuebart@mathematik.uni-ulm.de>
    Paolo Carlini  <pcarlini@suse.de>

* src/pool_allocator.cc (__pool_alloc_base::_M_allocate_chunk):
Deal properly with exceptions thrown by ::operator new(size_t).
* testsuite/ext/pool_allocator/allocate_chunk.cc: New.

* include/ext/pool_allocator.h: Include <cstdlib>.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
From-SVN: r88872
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/pool_allocator.h
libstdc++-v3/src/pool_allocator.cc
libstdc++-v3/testsuite/ext/pool_allocator/allocate_chunk.cc [new file with mode: 0644]