Patch: stl_vector.h

Paolo Carlini pcarlini@suse.de
Sun Oct 17 19:17:00 GMT 2004


Dhruv Matani wrote:

>I strongly believe that the problem is not with out implementation or
>the lack of sufficient amount of static_casts<> ;-) but with the
>standard's version of allocator::construct(pointer, const_reference).
>
Well, I agree: yesterday I learned that _Construct tries to overcome this
problem and why is not at all equivalent to allocator::construct.

However, if I'm finally getting the whole picture right, I also believe that
if/when the proposed resolution of 438 will get accepted, then these tricky
details will not be relevant anymore for the self consistency of the 
standard,
and the "normal" allocator::construct will suffice to implement it, without
the need for converting constructors/static_casts under the hood...

Paolo.



More information about the Libstdc++ mailing list