mirror of
https://github.com/boostorg/exception.git
synced 2025-07-12 12:06:33 +02:00
fixed compile errors, removed tabs as required.
[SVN r44114]
This commit is contained in:
@ -11,23 +11,23 @@ typedef boost::error_info<struct tag_errno,int> info_errno;
|
||||
|
||||
class
|
||||
my_exception:
|
||||
public boost::exception
|
||||
{
|
||||
};
|
||||
public boost::exception
|
||||
{
|
||||
};
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
try
|
||||
{
|
||||
errno=1;
|
||||
throw my_exception() << info_errno(errno);
|
||||
BOOST_TEST(false);
|
||||
}
|
||||
catch(
|
||||
my_exception & x )
|
||||
{
|
||||
BOOST_TEST(1==*boost::get_error_info<info_errno>(x));
|
||||
}
|
||||
return boost::report_errors();
|
||||
}
|
||||
{
|
||||
try
|
||||
{
|
||||
errno=1;
|
||||
throw my_exception() << info_errno(errno);
|
||||
BOOST_TEST(false);
|
||||
}
|
||||
catch(
|
||||
my_exception & x )
|
||||
{
|
||||
BOOST_TEST(1==*boost::get_error_info<info_errno>(x));
|
||||
}
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
Reference in New Issue
Block a user