STL maps never deallocate

Benjamin Kosnik bkoz@cygnus.com
Fri Apr 21 16:15:00 GMT 2000


Indeed. Put this in stl_config.h to switch over to malloc-based allocation:

#   define __STL_USE_STD_ALLOCATORS 
#   define __USE_MALLOC // As the "underlying allocator"

This is the default config for libstdc++-v3.

-benjamin



More information about the Gcc mailing list