From 3c5efe3c3b5f4e4733a687a51830e89be6006a4c Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Mon, 7 Mar 2011 07:45:38 +0000 Subject: [PATCH] Committing changes merged from trunk, most notably optional non-intrusive exception_ptr support for MSVC. [SVN r69620] --- include/boost/exception/exception.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index adaac68..6e9d405 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -189,6 +189,11 @@ boost E const & set_info( E const &, throw_line const & ); } +#if defined(__GNUC__) +# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4) +# pragma GCC visibility push (default) +# endif +#endif class exception { @@ -250,6 +255,11 @@ boost mutable char const * throw_file_; mutable int throw_line_; }; +#if defined(__GNUC__) +# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4) +# pragma GCC visibility pop +# endif +#endif inline exception:: @@ -334,7 +344,7 @@ boost struct enable_error_info_return_type { - typedef typename enable_error_info_helper::type type; + typedef typename enable_error_info_helper(0)))>::type type; }; }