mirror of
https://github.com/boostorg/exception.git
synced 2025-07-20 16:02:06 +02:00
Incorrect check in cloning_test fixed, and workaround for Metrowerks.
[SVN r69619]
This commit is contained in:
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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(
|
||||||
... )
|
... )
|
||||||
|
Reference in New Issue
Block a user