This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r141214 - in /trunk/libstdc++-v3: ChangeLog inc...
- From: paolo at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Sat, 18 Oct 2008 23:02:17 -0000
- Subject: r141214 - in /trunk/libstdc++-v3: ChangeLog inc...
Author: paolo
Date: Sat Oct 18 23:02:17 2008
New Revision: 141214
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141214
Log:
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.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_pair.h
trunk/libstdc++-v3/testsuite/20_util/pair/moveable.cc