From: Jason Merrill Date: Mon, 23 May 2011 15:39:48 +0000 (-0400) Subject: * libsupc++/exception_ptr.h: Fix compilation in C++0x mode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbee8bb3da264ebff80a3a3cdef017fbc0566467;p=gcc.git * libsupc++/exception_ptr.h: Fix compilation in C++0x mode. From-SVN: r174075 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f922fc59cf7..6332eaa0908 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2011-05-23 Jason Merrill + + * libsupc++/exception_ptr.h: Fix compilation in C++0x mode. + 2011-05-22 Jonathan Wakely * testsuite/20_util/bind/cv_quals_2.cc: New. diff --git a/libstdc++-v3/libsupc++/exception_ptr.h b/libstdc++-v3/libsupc++/exception_ptr.h index 26117cd5d09..00b30fd398a 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.