diff options
author | Paolo Carlini <pcarlini@suse.de> | 2004-10-15 10:54:57 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2004-10-15 10:54:57 +0000 |
commit | 0d6b41f2ddb7d0fc04a43f505598ba94a55fa4ee (patch) | |
tree | 73e97e39264f0d50f4b69d5007c1a70b6717fd2b /libstdc++-v3/src/bitmap_allocator.cc | |
parent | 31246b8f0d515137f28162a8e856b5b9faff6339 (diff) | |
download | gcc-0d6b41f2ddb7d0fc04a43f505598ba94a55fa4ee.zip gcc-0d6b41f2ddb7d0fc04a43f505598ba94a55fa4ee.tar.gz gcc-0d6b41f2ddb7d0fc04a43f505598ba94a55fa4ee.tar.bz2 |
bitmap_allocator.h: Qualify ::operator delete.
2004-10-15 Paolo Carlini <pcarlini@suse.de>
* include/ext/bitmap_allocator.h: Qualify ::operator delete.
* src/bitmap_allocator.cc: Likewise.
* src/mt_allocator.cc: Use ::operator delete, not delete,
consistently with ::operator new.
* include/ext/bitmap_allocator.h (deallocate): Check for null
pointer.
* testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
* testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
From-SVN: r89089
Diffstat (limited to 'libstdc++-v3/src/bitmap_allocator.cc')
-rw-r--r-- | libstdc++-v3/src/bitmap_allocator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/src/bitmap_allocator.cc b/libstdc++-v3/src/bitmap_allocator.cc index f37c5dc..3cd0fb9 100644 --- a/libstdc++-v3/src/bitmap_allocator.cc +++ b/libstdc++-v3/src/bitmap_allocator.cc @@ -121,7 +121,7 @@ namespace __gnu_cxx iterator __iter = _S_free_list.begin(); while (__iter != _S_free_list.end()) { - operator delete((void*)*__iter); + ::operator delete((void*)*__iter); ++__iter; } _S_free_list.clear(); |