-
- Downloads
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
Showing
- libstdc++-v3/ChangeLog 13 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/libsupc++/eh_ptr.cc 5 additions, 4 deletionslibstdc++-v3/libsupc++/eh_ptr.cc
- libstdc++-v3/libsupc++/exception_ptr.h 20 additions, 7 deletionslibstdc++-v3/libsupc++/exception_ptr.h
- libstdc++-v3/testsuite/18_support/exception_ptr/requirements.cc 60 additions, 0 deletions...c++-v3/testsuite/18_support/exception_ptr/requirements.cc
- libstdc++-v3/testsuite/18_support/exception_ptr/requirements_neg.cc 33 additions, 0 deletions...v3/testsuite/18_support/exception_ptr/requirements_neg.cc
Loading
Please register or sign in to comment