Skip to content
Snippets Groups Projects
Commit c44feea7 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Fixed warning

parent 194bef90
No related branches found
No related tags found
No related merge requests found
......@@ -984,6 +984,7 @@ public:
::std::string msg;
public:
Exception(const char* msg): msg(msg) {}
Exception(const Exception & other): msg(other.what()) {}
const char* what() const __PLUMED_WRAPPER_CXX_NOEXCEPT {return msg.c_str();}
~Exception() __PLUMED_WRAPPER_CXX_NOEXCEPT {}
};
......@@ -996,6 +997,7 @@ public:
public Exception {
public:
ExceptionError(const char* msg): Exception(msg) {}
ExceptionError(const ExceptionError & other) : Exception(other.what()) {}
~ExceptionError() __PLUMED_WRAPPER_CXX_NOEXCEPT {}
};
......@@ -1007,6 +1009,7 @@ public:
public Exception {
public:
ExceptionDebug(const char* msg): Exception(msg) {}
ExceptionDebug(const ExceptionDebug & other) : Exception(other.what()) {}
~ExceptionDebug() __PLUMED_WRAPPER_CXX_NOEXCEPT {}
};
......@@ -1018,6 +1021,7 @@ public:
public Exception {
public:
Invalid(const char* msg): Exception(msg) {}
Invalid(const Invalid & other) : Exception(other.what()) {}
~Invalid() __PLUMED_WRAPPER_CXX_NOEXCEPT {}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment