diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index c532a5c..6e9d405 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -344,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; }; } diff --git a/test/cloning_test.cpp b/test/cloning_test.cpp index 33602c9..ec10976 100644 --- a/test/cloning_test.cpp +++ b/test/cloning_test.cpp @@ -180,7 +180,7 @@ test_std_exception_what() catch( T & x ) { - BOOST_TEST(std::string("what")==x.what()); + BOOST_TEST(std::string(x.what()).find("what")!=std::string::npos); boost::exception_ptr p = boost::current_exception(); BOOST_TEST(!(p==boost::exception_ptr())); BOOST_TEST(p!=boost::exception_ptr()); @@ -193,7 +193,7 @@ test_std_exception_what() catch( T & x ) { - BOOST_TEST(std::string("what")==x.what()); + BOOST_TEST(std::string(x.what()).find("what")!=std::string::npos); } catch( ... )