Skip to content

Commit

Permalink
Merge pull request #16 from nim65s/devel
Browse files Browse the repository at this point in the history
remove dynamic exception specifications for C++17
  • Loading branch information
nim65s authored Jun 7, 2021
2 parents c7052f6 + 262c6f9 commit 5b37cdc
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 5b37cdc

Please sign in to comment.