This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: stl_vector.h


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]