forked from boostorg/throw_exception
Add BOOST_OVERRIDE to clone() and rethrow()
This commit is contained in:
1 parent
548084bd4c
commit
37f7c5fd30
1 file changed
+2
-2
@@ -140,7 +140,7 @@ public:
|
||||
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 );
|
||||
deleter del = { p };
|
||||
@@ -151,7 +151,7 @@ public:
|
||||
return p;
|
||||
}
|
||||
|
||||
virtual void rethrow() const
|
||||
virtual void rethrow() const BOOST_OVERRIDE
|
||||
{
|
||||
throw *this;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user