forked from boostorg/exception
Fixed exception info bug when boost::exception is derived virtually.
[SVN r46333]
This commit is contained in:
@ -16,21 +16,31 @@ boost
|
||||
exception_test
|
||||
{
|
||||
struct
|
||||
some_boost_exception:
|
||||
derives_boost_exception:
|
||||
public boost::exception,
|
||||
public std::exception
|
||||
{
|
||||
explicit some_boost_exception( int x );
|
||||
virtual ~some_boost_exception() throw();
|
||||
explicit derives_boost_exception( int x );
|
||||
virtual ~derives_boost_exception() throw();
|
||||
int x_;
|
||||
};
|
||||
|
||||
struct
|
||||
some_std_exception:
|
||||
derives_boost_exception_virtually:
|
||||
public virtual boost::exception,
|
||||
public std::exception
|
||||
{
|
||||
explicit some_std_exception( int x );
|
||||
virtual ~some_std_exception() throw();
|
||||
explicit derives_boost_exception_virtually( int x );
|
||||
virtual ~derives_boost_exception_virtually() throw();
|
||||
int x_;
|
||||
};
|
||||
|
||||
struct
|
||||
derives_std_exception:
|
||||
public std::exception
|
||||
{
|
||||
explicit derives_std_exception( int x );
|
||||
virtual ~derives_std_exception() throw();
|
||||
int x_;
|
||||
};
|
||||
|
||||
@ -38,10 +48,13 @@ boost
|
||||
void throw_test_exception( int );
|
||||
|
||||
template <>
|
||||
void throw_test_exception<some_boost_exception>( int );
|
||||
void throw_test_exception<derives_boost_exception>( int );
|
||||
|
||||
template <>
|
||||
void throw_test_exception<some_std_exception>( int );
|
||||
void throw_test_exception<derives_boost_exception_virtually>( int );
|
||||
|
||||
template <>
|
||||
void throw_test_exception<derives_std_exception>( int );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user