This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] allocator reorg
On Wed, Jun 11, 2003 at 10:44:28AM -0500, Benjamin Kosnik wrote:
>
> Anyway. Another idea would be to set allocators dynamically on the fly
> (either by macros in default_allocator.h) or some other shenanigans. The
> problem with this is that there is no equivalence between two classes
> with different allocators.
There's no need for the different allocation strategies to be
bound to different types. A single allocator type may vary its
behavior at runtime or (probably much better) at link time
according to the presence of thread-related symbols.
Nathan Myers
ncm-nospam@cantrip.org