Fixed exception info bug when boost::exception is derived virtually.

[SVN r46333]
This commit is contained in:
Emil Dotchevski
2008-06-11 18:24:10 +00:00
parent 3b2a6a2711
commit 421a059421
4 changed files with 66 additions and 25 deletions

View File

@ -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 );
}
}