exception method signature fix

This commit is contained in:
Timerix22 2024-03-22 21:57:04 +05:00
parent 0ee34bf810
commit 72352994f7
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ UsefulException_::UsefulException_(std::string _message, std::string _file, std:
complete_text = ss.str();
}
const char* UsefulException_::what() {
char const* UsefulException_::what() const noexcept {
return complete_text.c_str();
}

View File

@ -17,7 +17,7 @@ class UsefulException_ : public std::exception {
public:
UsefulException_(std::string msg, std::string _file, std::string _func, int line_n);
const char* what();
virtual char const* what() const noexcept;
};
}