diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-27 16:50:23 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-27 16:50:23 +0000 |
commit | 401429ceecfa2c09484d6cba63092605bebbd56e (patch) | |
tree | 480aa8d3ec7622f0b85b44490fe14c83e8190ec3 /gcc/predict.c | |
parent | 1354b7f423300c30695788a95321aaa92b476f90 (diff) | |
download | gcc-401429ceecfa2c09484d6cba63092605bebbd56e.tar.gz |
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
Diffstat (limited to 'gcc/predict.c')
0 files changed, 0 insertions, 0 deletions