
6 Dec
2009
6 Dec
'09
12:45 p.m.
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