]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/18_support/exception_ptr/requirements_neg.cc
re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons)
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sun, 6 Jun 2010 13:27:23 +0000 (13:27 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 6 Jun 2010 13:27:23 +0000 (14:27 +0100)
commitb4e77f9b76f4cafc0f3de2466de06c84e7102877
treec4d14bcb974fd2b861009c6196a51f477ed8e805
parent346967d1cf5cf5f53a48aa8483365e3d1405ff2d
re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons)

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.

From-SVN: r160340
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/eh_ptr.cc
libstdc++-v3/libsupc++/exception_ptr.h
libstdc++-v3/testsuite/18_support/exception_ptr/requirements.cc [new file with mode: 0644]
libstdc++-v3/testsuite/18_support/exception_ptr/requirements_neg.cc [new file with mode: 0644]