Skip to content

Commit

Permalink
remove dynamic exception specifications for C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Jun 3, 2021
1 parent c7052f6 commit 262c6f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions include/parametric-curves/serialization/archive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct Serializable {

public:
/// \brief Loads a Derived object from a text file.
void loadFromText(const std::string& filename) throw(std::invalid_argument) {
void loadFromText(const std::string& filename) {
std::ifstream ifs(filename.c_str());
if (ifs) {
boost::archive::text_iarchive ia(ifs);
Expand All @@ -32,7 +32,7 @@ struct Serializable {
}

/// \brief Saved a Derived object as a text file.
void saveAsText(const std::string& filename) const throw(std::invalid_argument) {
void saveAsText(const std::string& filename) const {
std::ofstream ofs(filename.c_str());
if (ofs) {
boost::archive::text_oarchive oa(ofs);
Expand All @@ -44,7 +44,7 @@ struct Serializable {
}

/// \brief Loads a Derived object from an XML file.
void loadFromXML(const std::string& filename, const std::string& tag_name) throw(std::invalid_argument) {
void loadFromXML(const std::string& filename, const std::string& tag_name) {
assert(!tag_name.empty());
std::ifstream ifs(filename.c_str());
if (ifs) {
Expand All @@ -57,7 +57,7 @@ struct Serializable {
}

/// \brief Saved a Derived object as an XML file.
void saveAsXML(const std::string& filename, const std::string& tag_name) const throw(std::invalid_argument) {
void saveAsXML(const std::string& filename, const std::string& tag_name) const {
assert(!tag_name.empty());
std::ofstream ofs(filename.c_str());
if (ofs) {
Expand All @@ -70,7 +70,7 @@ struct Serializable {
}

/// \brief Loads a Derived object from an binary file.
void loadFromBinary(const std::string& filename) throw(std::invalid_argument) {
void loadFromBinary(const std::string& filename) {
std::ifstream ifs(filename.c_str());
if (ifs) {
boost::archive::binary_iarchive ia(ifs);
Expand All @@ -82,7 +82,7 @@ struct Serializable {
}

/// \brief Saved a Derived object as an binary file.
void saveAsBinary(const std::string& filename) const throw(std::invalid_argument) {
void saveAsBinary(const std::string& filename) const {
std::ofstream ofs(filename.c_str());
if (ofs) {
boost::archive::binary_oarchive oa(ofs);
Expand Down
4 changes: 2 additions & 2 deletions include/parametric-curves/spatial/force-curve.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ struct ForceCurve : public AbstractCurve<Numeric, Eigen::Matrix<Numeric, 6, 1> >
BOOST_SERIALIZATION_SPLIT_MEMBER()

public:
bool loadFromFile(const std::string& filename) throw(std::invalid_argument) {
bool loadFromFile(const std::string& filename) {
std::ifstream ifs(filename.c_str());
if (ifs) {
boost::archive::text_iarchive ia(ifs);
Expand All @@ -133,7 +133,7 @@ struct ForceCurve : public AbstractCurve<Numeric, Eigen::Matrix<Numeric, 6, 1> >
}

/// \brief Saved a Derived object as a text file.
bool saveToFile(const std::string& filename) const throw(std::invalid_argument) {
bool saveToFile(const std::string& filename) const {
std::ofstream ofs(filename.c_str());
if (ofs) {
boost::archive::text_oarchive oa(ofs);
Expand Down
4 changes: 2 additions & 2 deletions include/parametric-curves/spline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ struct Spline : public AbstractCurve<Numeric, Point> {
BOOST_SERIALIZATION_SPLIT_MEMBER()

public:
bool loadFromFile(const std::string& filename) throw(std::invalid_argument) {
bool loadFromFile(const std::string& filename) {
std::ifstream ifs(filename.c_str());
if (ifs) {
boost::archive::text_iarchive ia(ifs);
Expand All @@ -357,7 +357,7 @@ struct Spline : public AbstractCurve<Numeric, Point> {
}

/// \brief Saved a Derived object as a text file.
bool saveToFile(const std::string& filename) const throw(std::invalid_argument) {
bool saveToFile(const std::string& filename) const {
std::ofstream ofs(filename.c_str());
if (ofs) {
boost::archive::text_oarchive oa(ofs);
Expand Down

0 comments on commit 262c6f9

Please sign in to comment.