Boost logo

Boost :

Subject: Re: [boost] [unordered] please don't allocate memory in the default constructor
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2009-08-24 21:32:51


Ilya Bobir wrote:
> Daniel James wrote:
>> I can't do that because I'm fully supporting allocators, so pointers
>> can only point to memory allocated with the allocator.
>
> Does it meter what allocator was used to allocate a static object that
> is not going to be deallocated until program exit or even will never
> be deallocated at all?
What matters is that the allocator may define a pointer type that cannot
point to static objects.

Sebastian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk