OSDN Git Service

2008-10-27 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Oct 2008 16:50:23 +0000 (16:50 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Oct 2008 16:50:23 +0000 (16:50 +0000)
commit401429ceecfa2c09484d6cba63092605bebbd56e
tree480aa8d3ec7622f0b85b44490fe14c83e8190ec3
parent1354b7f423300c30695788a95321aaa92b476f90
2008-10-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/37919
Revert:
2008-10-18  Douglas Gregor  <doug.gregor@gmail.com>

* include/bits/stl_pair.h (__may_be_null_pointer_init): New.
(pair::pair): Eliminate the redundant pair(U1&&, U2&&) constructor.
Add lvalue pair<U1, U2> constructor to handle non-const pair lvalues.
Remove the old variadic constructor, and instead provide several
variadic constructors that avoid failing when attempting to
initialize a pointer from a null pointer constant.
* testsuite/20_util/pair/moveable.cc (test3): Add new tests with
initialization of pointers from the null pointer constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141388 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_pair.h
libstdc++-v3/testsuite/20_util/pair/moveable.cc