mirror of
https://github.com/boostorg/exception.git
synced 2025-07-16 05:52:14 +02:00
Fixed exception info bug when boost::exception is derived virtually.
[SVN r46333]
This commit is contained in:
@ -64,6 +64,9 @@ boost
|
||||
clone_impl( T const & x ):
|
||||
T(x)
|
||||
{
|
||||
if( boost::exception * be1=dynamic_cast<boost::exception *>(this) )
|
||||
if( boost::exception const * be2=dynamic_cast<T const *>(&x) )
|
||||
*be1 = *be2;
|
||||
}
|
||||
|
||||
private:
|
||||
@ -88,6 +91,9 @@ boost
|
||||
T(x),
|
||||
count_(0)
|
||||
{
|
||||
if( boost::exception * be1=dynamic_cast<boost::exception *>(this) )
|
||||
if( boost::exception const * be2=dynamic_cast<T const *>(&x) )
|
||||
*be1 = *be2;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user