Summary (Re: Patch: stl_vector.h)

Paolo Carlini pcarlini@suse.de
Sat Oct 16 22:11:00 GMT 2004


Hi again,

this is hopefully ;) my last message for today. Finally the issue is
more clear to me (I hope). Summarizing, I think that we have two
different options to conform to the current standard:

  1- Change the various containers, adding static_casts.
  2- Change the __uninitialized_*, or, in other terms, add a three
     arguments _Construct overload for use there.

Everything considered I prefer 2-, for this reason: when the resolution
of 438 will be in effect, it will suffice to simply remove all the
_Construct (both two and three arguments) and call __alloc::construct
directly from the __uninitialized_*. In the meanwhile we would end
up with a consistent set of _Construct / _Destroy and a consistent set
of uses from the __uninitialized; all the changes concentrated in
stl_uninitialized and stl_construct.

What do people think?

Paolo.



More information about the Libstdc++ mailing list