forked from boostorg/throw_exception
Add BOOST_OVERRIDE to clone() and rethrow()
This commit is contained in:
@ -140,7 +140,7 @@ public:
|
|||||||
set_info( *this, throw_function( loc.function_name() ) );
|
set_info( *this, throw_function( loc.function_name() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual boost::exception_detail::clone_base const * clone() const
|
virtual boost::exception_detail::clone_base const * clone() const BOOST_OVERRIDE
|
||||||
{
|
{
|
||||||
wrapexcept * p = new wrapexcept( *this );
|
wrapexcept * p = new wrapexcept( *this );
|
||||||
deleter del = { p };
|
deleter del = { p };
|
||||||
@ -151,7 +151,7 @@ public:
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void rethrow() const
|
virtual void rethrow() const BOOST_OVERRIDE
|
||||||
{
|
{
|
||||||
throw *this;
|
throw *this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user