diff --git a/include/boost/test/utils/runtime/errors.hpp b/include/boost/test/utils/runtime/errors.hpp index a33af62648..d9064367aa 100644 --- a/include/boost/test/utils/runtime/errors.hpp +++ b/include/boost/test/utils/runtime/errors.hpp @@ -39,7 +39,7 @@ namespace runtime { class BOOST_SYMBOL_VISIBLE param_error : public std::exception { public: - ~param_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {} + BOOST_DEFAULTED_FUNCTION(~param_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {}) const char * what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE { @@ -58,13 +58,13 @@ class BOOST_SYMBOL_VISIBLE param_error : public std::exception { class BOOST_SYMBOL_VISIBLE init_error : public param_error { protected: explicit init_error( cstring param_name ) : param_error( param_name ) {} - ~init_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {} + BOOST_DEFAULTED_FUNCTION(~init_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {}) }; class BOOST_SYMBOL_VISIBLE input_error : public param_error { protected: explicit input_error( cstring param_name ) : param_error( param_name ) {} - ~input_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {} + BOOST_DEFAULTED_FUNCTION(~input_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {}) }; //____________________________________________________________________________// @@ -73,7 +73,7 @@ template class BOOST_SYMBOL_VISIBLE specific_param_error : public Base { protected: explicit specific_param_error( cstring param_name ) : Base( param_name ) {} - ~specific_param_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {} + BOOST_DEFAULTED_FUNCTION(~specific_param_error() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {}) public: @@ -166,7 +166,7 @@ class BOOST_SYMBOL_VISIBLE ambiguous_param : public specific_param_error( "" ) , m_amb_candidates( amb_candidates ) {} #endif - ~ambiguous_param() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {} + BOOST_DEFAULTED_FUNCTION(~ambiguous_param() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {}) std::vector m_amb_candidates; }; @@ -182,7 +182,7 @@ class BOOST_SYMBOL_VISIBLE unrecognized_param : public specific_param_error( "" ) , m_typo_candidates( type_candidates ) {} #endif - ~unrecognized_param() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE {} + BOOST_DEFAULTED_FUNCTION(~unrecognized_param() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE, {}) std::vector m_typo_candidates; }; diff --git a/include/boost/test/utils/runtime/parameter.hpp b/include/boost/test/utils/runtime/parameter.hpp index 4509107653..a99aa75a4a 100644 --- a/include/boost/test/utils/runtime/parameter.hpp +++ b/include/boost/test/utils/runtime/parameter.hpp @@ -148,7 +148,7 @@ class basic_param { } public: - virtual ~basic_param() {} + BOOST_DEFAULTED_FUNCTION(virtual ~basic_param(), {}) // Pubic properties std::string const p_name;