Unverified Commit 5b37cdcf authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #16 from nim65s/devel

remove dynamic exception specifications for C++17
parents c7052f6f 262c6f93
Pipeline #14834 passed with stage
in 5 minutes and 11 seconds
......@@ -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);
......@@ -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);
......@@ -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) {
......@@ -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) {
......@@ -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);
......@@ -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);
......
......@@ -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);
......@@ -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);
......
......@@ -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);
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment