Boost logo

Boost :

Subject: Re: [boost] Interprocess regexes
From: Jeffrey Bosboom (jbosboom_at_[hidden])
Date: 2009-12-06 07:45:05


Thomas Klimpel wrote:
> Jeffrey Bosboom wrote:
>> So why are ::pointer et al provided at all?
>
> Perhaps because it would be a part of a reasonable allocator abstraction? So the right interface is there, but it is not fully supported by the std lib (but you would be able to provide an implementation of the std lib that would fully support it).
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>

Then I guess a better question would be, "Why don't standard library
implementations properly use ::pointer?" (My guess was that doing so
inhibits optimizations or something similar, since it can't be that much
harder to use pointer than just using T* everywhere.)

--Jeffrey Bosboom


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