This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ - version 3 default allocator
- From: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- To: Sameer Atre <sameer dot atre at capsilon dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 5 Jul 2005 12:24:12 +0100
- Subject: Re: libstdc++ - version 3 default allocator
- References: <42CA63E2.7030403@capsilon.com>
On Tue, Jul 05, 2005 at 04:11:38PM +0530, Sameer Atre wrote:
> Hi,
>
> The older version of libstdc++ (version 2) had a macro
> __STL_DEFAULT_ALLOCATOR which could be used for redefining the default
> allocator for all STL containers in a program.
>
> How can I get the same behaviour in version 3 of libstdc++ when I want
> to change the default allocator for all containers.
You must re-configure and re-compile libstdc++ if you want a different
default allocator. See the --enable-libstdcxx-allocator=OPTION
documentation in the libstdc++ configuration docs:
http://gcc.gnu.org/onlinedocs/libstdc++/configopts.html
Using this option can result in a libstdc++ binary that is not
compatible with default-configured builds.
Regards,
jon
--
"God is as real as I am," the old man said. My faith was restored, for
I knew that Santa would never lie.