PATCH: Allocator in basic_string should default to __STL_DEFAULT_ALLOCATOR(charT)
Lars Doelle
lars.doelle@on-line.de
Thu Sep 26 20:01:00 GMT 2002
Hi,
please consider the attached patch for inclusion in libstdc++.
To check for memory leaks, i'm using the hooks in malloc/realloc/free counting
object allocation and deallocation. To this end, i use
#define __STL_DEFAULT_ALLOCATOR(T) malloc_alloc
so that all (de,re)allocations path through malloc/realloc/free.
But basic_string does not respect this macro, and from the style of the stl, i
find this an omission or inconsistency.
In case i picked the wrong mean to make all of the stl use only malloc_alloc,
please let me know.
Best regards,
- lars
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bastring.h.patch
Type: text/x-diff
Size: 318 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20020926/c19358ca/attachment.bin>
More information about the Gcc-patches
mailing list