Commit 1c3fe6c6 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

remove dynamic exception specification for C++17 compatibility

parent 3f86011f
Pipeline #17100 failed with stage
in 8 minutes and 50 seconds
......@@ -41,7 +41,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);
......@@ -53,7 +53,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);
......@@ -65,7 +65,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) {
......@@ -78,7 +78,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) {
......@@ -91,7 +91,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);
......@@ -103,7 +103,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);
......
Markdown is supported
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