[v3] Fix libstdc++/32618, add in C++0x mode container cons and resize taking size_type

Paolo Carlini paolo.carlini@oracle.com
Fri Jun 18 21:39:00 GMT 2010


Hi,

even if the subject of the PR isn't terribly telling, this boils down to
adding, uniformly on the containers, constructor and resize taking a
size_type and not requiring CopyConstructible for the value_type. In
principle, it would be possible to do this also unconditionally, for
C++03 too, but we used to guarantee that all the containers (with the
exception of map) can be also explicitly instantiated for
NonDefaultConstructible types too...

The forward_list hunks represent a pure bug fix, affect only C++0x mode
and will go in 4_5-branch too.

Tested x86_64-linux, committed.

Paolo.

//////////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_32618
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100618/4b122aec/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_32618
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100618/4b122aec/attachment-0001.ksh>


More information about the Gcc-patches mailing list