[RFC] allocator reorg

Nathan Myers ncm-nospam@cantrip.org
Wed Jun 11 19:30:00 GMT 2003


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



More information about the Libstdc++ mailing list