[v3] libstdc++/40925

Paolo Carlini paolo.carlini@oracle.com
Thu Oct 29 19:43:00 GMT 2009


Hi,

eventually I decided to do something about this issue, even if we don't
know yet the shape to of the final C++0x std::pair, because breaks very
simple C++98 code and makes difficult testing the new C++0x features.
I'm simply constraining with std::enable_if the pair(_U1&&, _U2&&)
constructor, something that really we'll be specified for sure, and
removing the variadic constructor, which is unused at the moment in
libstdc++-v3 and likely will not be in C++0x. I'm only slightly nervous
because our std::is_convertible isn't fully conforming, certainly
requires front-end support to be robust vs access checks and
ambiguities, but I think is good enough for the use at issue here.

Tested x86_64-linux, committed to mainline.

Paolo.

//////////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_40925
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091029/71a7742a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_40925
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091029/71a7742a/attachment-0001.ksh>


More information about the Gcc-patches mailing list