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


Paolo Carlini wrote:

But, Matt, in case we add static_casts at that upper level, is still needed the
_Construct with two template arguments? Isn't even slightly non-conforming,
that is, not strictly implementing the requirements for std::allocator::construct
in table 32?

(sorry for replying to myself again)


I'm now looking in detail into 20.4.4 and in fact the "casts" are present also in
the "Effects" clause of the specialized algorithms!


Therefore, it seems to me, that we should definitely add "casts" also at that
level, not only at the level of the containers... The latter is bigger, but would
stay also after the resolution of 438.


Paolo.


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