From c766d59471b6d9d88a91f54d7b510b37b587b6f3 Mon Sep 17 00:00:00 2001 From: Ed Catmur Date: Tue, 21 Nov 2023 09:25:24 -0700 Subject: [PATCH] require C++11 --- include/boost/property_tree/detail/file_parser_error.hpp | 6 +----- include/boost/property_tree/detail/rapidxml.hpp | 2 +- include/boost/property_tree/exceptions.hpp | 6 +++--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/include/boost/property_tree/detail/file_parser_error.hpp b/include/boost/property_tree/detail/file_parser_error.hpp index 167b99cd3..cb9da6b6c 100644 --- a/include/boost/property_tree/detail/file_parser_error.hpp +++ b/include/boost/property_tree/detail/file_parser_error.hpp @@ -34,11 +34,7 @@ namespace boost { namespace property_tree { } - BOOST_DEFAULTED_FUNCTION(~file_parser_error() throw() BOOST_OVERRIDE, - // gcc 3.4.2 complains about lack of throw specifier on compiler - // generated dtor - { - }) + ~file_parser_error() throw() override = default; /////////////////////////////////////////////////////////////////////// // Data access diff --git a/include/boost/property_tree/detail/rapidxml.hpp b/include/boost/property_tree/detail/rapidxml.hpp index 5c297de70..7afc0a600 100644 --- a/include/boost/property_tree/detail/rapidxml.hpp +++ b/include/boost/property_tree/detail/rapidxml.hpp @@ -59,7 +59,7 @@ namespace boost { namespace property_tree { namespace detail {namespace rapidxml //! Gets human readable description of error. //! \return Pointer to null terminated description of the error. - const char *what() const throw() BOOST_OVERRIDE + const char *what() const throw() override { return m_what; } diff --git a/include/boost/property_tree/exceptions.hpp b/include/boost/property_tree/exceptions.hpp index 2c732ec84..8684c340b 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); - BOOST_DEFAULTED_FUNCTION(~ptree_error() throw() BOOST_OVERRIDE, {}); + ~ptree_error() throw() override = default; }; @@ -48,7 +48,7 @@ namespace boost { namespace property_tree template ptree_bad_data(const std::string &what, const T &data); - BOOST_DEFAULTED_FUNCTION(~ptree_bad_data() throw() BOOST_OVERRIDE, {}); + ~ptree_bad_data() throw() override = default; /// 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); - BOOST_DEFAULTED_FUNCTION(~ptree_bad_path() throw() BOOST_OVERRIDE, {}); + ~ptree_bad_path() throw() override = default; /// Retrieve the invalid path. You need to explicitly specify the /// type of path.