forked from boostorg/throw_exception
Test (and fix) error info with virtual inheritance from boost::exception
This commit is contained in:
1 parent
c58f418c2f
commit
a2a78f6e46
2 files changed
+49
No files matched your search
@@ -117,10 +117,13 @@ public:
|
||||
|
||||
explicit wrapexcept( E const & e ): E( e )
|
||||
{
|
||||
boost::exception_detail::copy_boost_exception( this, &e );
|
||||
}
|
||||
|
||||
explicit wrapexcept( E const & e, boost::source_location const & loc ): E( e )
|
||||
{
|
||||
boost::exception_detail::copy_boost_exception( this, &e );
|
||||
|
||||
set_info( *this, throw_file( loc.file_name() ) );
|
||||
set_info( *this, throw_line( loc.line() ) );
|
||||
set_info( *this, throw_function( loc.function_name() ) );
|
||||
|
||||
Reference in new issue
Block a user