OSDN Git Service

2010-06-06 Jonathan Wakely <jwakely.gcc@gmail.com>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Jun 2010 13:27:23 +0000 (13:27 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Jun 2010 13:27:23 +0000 (13:27 +0000)
commit4248af4551d81052ebd35f4bbefa44e06224483d
treec4d14bcb974fd2b861009c6196a51f477ed8e805
parent0fd21c35f1bbe6014cd18dc187a9e8e135137ab2
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160340 138bc75d-0d04-0410-961f-82ee72b054a4
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]