From 37f7c5fd30cd946063048e7ad9fdab1ed99ecce2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 14 Apr 2020 00:41:54 +0300 Subject: [PATCH] Add BOOST_OVERRIDE to clone() and rethrow() --- include/boost/throw_exception.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/throw_exception.hpp b/include/boost/throw_exception.hpp index 17aff51..5d663eb 100644 --- a/include/boost/throw_exception.hpp +++ b/include/boost/throw_exception.hpp @@ -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; }