Incorrect check in cloning_test fixed, and workaround for Metrowerks.

[SVN r69619]
This commit is contained in:
Emil Dotchevski
2011-03-07 07:39:50 +00:00
parent a74d041bd5
commit fb4ed73b5e
2 changed files with 3 additions and 3 deletions

View File

@ -344,7 +344,7 @@ boost
struct struct
enable_error_info_return_type enable_error_info_return_type
{ {
typedef typename enable_error_info_helper<T,sizeof(exception_detail::dispatch_boost_exception((T*)0))>::type type; typedef typename enable_error_info_helper<T,sizeof(exception_detail::dispatch_boost_exception(static_cast<T *>(0)))>::type type;
}; };
} }

View File

@ -180,7 +180,7 @@ test_std_exception_what()
catch( catch(
T & x ) 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::exception_ptr p = boost::current_exception();
BOOST_TEST(!(p==boost::exception_ptr())); BOOST_TEST(!(p==boost::exception_ptr()));
BOOST_TEST(p!=boost::exception_ptr()); BOOST_TEST(p!=boost::exception_ptr());
@ -193,7 +193,7 @@ test_std_exception_what()
catch( catch(
T & x ) T & x )
{ {
BOOST_TEST(std::string("what")==x.what()); BOOST_TEST(std::string(x.what()).find("what")!=std::string::npos);
} }
catch( catch(
... ) ... )