From dbee8bb3da264ebff80a3a3cdef017fbc0566467 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 23 May 2011 11:39:48 -0400 Subject: * libsupc++/exception_ptr.h: Fix compilation in C++0x mode. From-SVN: r174075 --- libstdc++-v3/libsupc++/exception_ptr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libstdc++-v3/libsupc++') diff --git a/libstdc++-v3/libsupc++/exception_ptr.h b/libstdc++-v3/libsupc++/exception_ptr.h index 26117cd..00b30fd 100644 --- a/libstdc++-v3/libsupc++/exception_ptr.h +++ b/libstdc++-v3/libsupc++/exception_ptr.h @@ -97,7 +97,9 @@ namespace std exception_ptr(exception_ptr&& __o) throw() : _M_exception_object(__o._M_exception_object) { __o._M_exception_object = 0; } -#else +#endif + +#if !defined (__GXX_EXPERIMENTAL_CXX0X__) || defined (_GLIBCXX_EH_PTR_COMPAT) typedef void (exception_ptr::*__safe_bool)(); // For construction from nullptr or 0. -- cgit v1.1