gcc/libstdc++-v3/testsuite/18_support/exception_ptr
Jonathan Wakely b4e77f9b76 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
2010-06-06 14:27:23 +01:00
..
40296.cc re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons) 2009-06-03 10:37:20 +00:00
current_exception.cc re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons) 2009-06-03 10:37:20 +00:00
lifespan.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
make_exception_ptr.cc exception_ptr.h (make_exception_ptr): Add. 2010-05-07 02:05:38 +01:00
move.cc exception_ptr.h (exception_ptr::swap(exception_ptr&&)): Remove. 2009-06-16 22:24:41 +01:00
requirements_neg.cc re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons) 2010-06-06 14:27:23 +01:00
requirements.cc re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons) 2010-06-06 14:27:23 +01:00
rethrow_exception.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00