This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r160340 - in /trunk/libstdc++-v3: ChangeLog lib...
- From: redi at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Sun, 06 Jun 2010 13:27:24 -0000
- Subject: r160340 - in /trunk/libstdc++-v3: ChangeLog lib...
Author: redi
Date: Sun Jun 6 13:27:23 2010
New Revision: 160340
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160340
Log:
2010-06-06 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/40296
* libsupc++/exception_ptr.h (exception_ptr::exception_ptr): Replace
__safe_bool constructor with nullptr_t constructor in C++0x mode.
(exception_ptr::operator bool): Add explicit conversion to bool.
(swap(exception_ptr&, exception_ptr&)): Add.
(exception_ptr::_M_safe_bool_dummy): Only declare for old ABI.
* libsupc++/eh_ptr.cc (exception_ptr::_M_safe_bool_dummy): Move
next to other functions retained for ABI compatibility.
* testsuite/18_support/exception_ptr/requirements.cc: New.
* testsuite/18_support/exception_ptr/requirements_neg.cc: New.
Added:
trunk/libstdc++-v3/testsuite/18_support/exception_ptr/requirements.cc
trunk/libstdc++-v3/testsuite/18_support/exception_ptr/requirements_neg.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/libsupc++/eh_ptr.cc
trunk/libstdc++-v3/libsupc++/exception_ptr.h