This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/40925] [c++0x] [DR811] std::pair<T*,U*> constructor doesn't accept (0, 0)
- From: "paolo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2009 19:26:19 -0000
- Subject: [Bug libstdc++/40925] [c++0x] [DR811] std::pair<T*,U*> constructor doesn't accept (0, 0)
- References: <bug-40925-11760@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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