diff --git a/include/boost/property_tree/detail/exception_implementation.hpp b/include/boost/property_tree/detail/exception_implementation.hpp index bb39135fd..cd3434ae4 100644 --- a/include/boost/property_tree/detail/exception_implementation.hpp +++ b/include/boost/property_tree/detail/exception_implementation.hpp @@ -35,10 +35,6 @@ namespace boost { namespace property_tree { } - inline ptree_error::~ptree_error() throw() - { - } - /////////////////////////////////////////////////////////////////////////// // ptree_bad_data @@ -48,10 +44,6 @@ namespace boost { namespace property_tree { } - inline ptree_bad_data::~ptree_bad_data() throw() - { - } - template inline D ptree_bad_data::data() const { @@ -68,10 +60,6 @@ namespace boost { namespace property_tree } - inline ptree_bad_path::~ptree_bad_path() throw() - { - } - template inline P ptree_bad_path::path() const { diff --git a/include/boost/property_tree/detail/file_parser_error.hpp b/include/boost/property_tree/detail/file_parser_error.hpp index 1a0e49aad..167b99cd3 100644 --- a/include/boost/property_tree/detail/file_parser_error.hpp +++ b/include/boost/property_tree/detail/file_parser_error.hpp @@ -34,11 +34,11 @@ namespace boost { namespace property_tree { } - ~file_parser_error() throw() BOOST_OVERRIDE + BOOST_DEFAULTED_FUNCTION(~file_parser_error() throw() BOOST_OVERRIDE, // gcc 3.4.2 complains about lack of throw specifier on compiler // generated dtor { - } + }) /////////////////////////////////////////////////////////////////////// // Data access diff --git a/include/boost/property_tree/exceptions.hpp b/include/boost/property_tree/exceptions.hpp index ab4a9511b..2c732ec84 100644 --- a/include/boost/property_tree/exceptions.hpp +++ b/include/boost/property_tree/exceptions.hpp @@ -31,7 +31,7 @@ namespace boost { namespace property_tree /// @param what The message to associate with this error. ptree_error(const std::string &what); - ~ptree_error() throw() BOOST_OVERRIDE; + BOOST_DEFAULTED_FUNCTION(~ptree_error() throw() BOOST_OVERRIDE, {}); }; @@ -48,7 +48,7 @@ namespace boost { namespace property_tree template ptree_bad_data(const std::string &what, const T &data); - ~ptree_bad_data() throw() BOOST_OVERRIDE; + BOOST_DEFAULTED_FUNCTION(~ptree_bad_data() throw() BOOST_OVERRIDE, {}); /// Retrieve the data associated with this error. This is the source /// value that failed to be translated. You need to explicitly @@ -70,7 +70,7 @@ namespace boost { namespace property_tree template ptree_bad_path(const std::string &what, const T &path); - ~ptree_bad_path() throw() BOOST_OVERRIDE; + BOOST_DEFAULTED_FUNCTION(~ptree_bad_path() throw() BOOST_OVERRIDE, {}); /// Retrieve the invalid path. You need to explicitly specify the /// type of path.