This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/40925] [c++0x] [DR811] std::pair<T*,U*> constructor doesn't accept (0, 0)



------- Comment #7 from paolo at gcc dot gnu dot org  2009-10-29 19:26 -------
Subject: Bug 40925

Author: paolo
Date: Thu Oct 29 19:26:04 2009
New Revision: 153725

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153725
Log:
2009-10-29  Paolo Carlini  <paolo.carlini@oracle.com>

        PR libstdc++/40925
        * include/bits/stl_pair.h (pair<_T1, _T2>::pair(_U1&&, _U2&&)):
        Use enable_if to remove it from the overload set when either _U1
        is not convertible to _T1 or _U2 is not convertible to _T2.
        (pair<>::pair(_U1&&, _Arg0&&, _Args&&...)): Remove.

2009-10-29  Douglas Gregor  <doug.gregor@gmail.com>

        PR libstdc++/40925
        * testsuite/20_util/pair/40925.cc: Add.

Added:
    trunk/libstdc++-v3/testsuite/20_util/pair/40925.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_pair.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40925


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