exception method signature fix
This commit is contained in:
parent
0ee34bf810
commit
72352994f7
@ -12,7 +12,7 @@ UsefulException_::UsefulException_(std::string _message, std::string _file, std:
|
|||||||
complete_text = ss.str();
|
complete_text = ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* UsefulException_::what() {
|
char const* UsefulException_::what() const noexcept {
|
||||||
return complete_text.c_str();
|
return complete_text.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class UsefulException_ : public std::exception {
|
|||||||
public:
|
public:
|
||||||
UsefulException_(std::string msg, std::string _file, std::string _func, int line_n);
|
UsefulException_(std::string msg, std::string _file, std::string _func, int line_n);
|
||||||
|
|
||||||
const char* what();
|
virtual char const* what() const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user