Skip to content

Commit

Permalink
Remove dtor declarations entirely
Browse files Browse the repository at this point in the history
the default dtor is fine
  • Loading branch information
ecatmur committed Nov 21, 2023
1 parent c766d59 commit 80e6bd0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 1 addition & 3 deletions include/boost/property_tree/detail/file_parser_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace boost { namespace property_tree
public:

///////////////////////////////////////////////////////////////////////
// Construction & destruction
// Construction

// Construct error
file_parser_error(const std::string &msg,
Expand All @@ -34,8 +34,6 @@ namespace boost { namespace property_tree
{
}

~file_parser_error() throw() override = default;

///////////////////////////////////////////////////////////////////////
// Data access

Expand Down
6 changes: 0 additions & 6 deletions include/boost/property_tree/exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ namespace boost { namespace property_tree
/// Instantiate a ptree_error instance with the given message.
/// @param what The message to associate with this error.
ptree_error(const std::string &what);

~ptree_error() throw() override = default;
};


Expand All @@ -48,8 +46,6 @@ namespace boost { namespace property_tree
template<class T> ptree_bad_data(const std::string &what,
const T &data);

~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
/// specify its type.
Expand All @@ -70,8 +66,6 @@ namespace boost { namespace property_tree
template<class T> ptree_bad_path(const std::string &what,
const T &path);

~ptree_bad_path() throw() override = default;

/// Retrieve the invalid path. You need to explicitly specify the
/// type of path.
template<class T> T path() const;
Expand Down

0 comments on commit 80e6bd0

Please sign in to comment.