Skip to content

Commit

Permalink
require C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
ecatmur committed Nov 21, 2023
1 parent 17e4c9f commit c766d59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions include/boost/property_tree/detail/file_parser_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion include/boost/property_tree/detail/rapidxml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions include/boost/property_tree/exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};


Expand All @@ -48,7 +48,7 @@ namespace boost { namespace property_tree
template<class T> 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
Expand All @@ -70,7 +70,7 @@ namespace boost { namespace property_tree
template<class T> 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.
Expand Down

0 comments on commit c766d59

Please sign in to comment.