mirror of
https://github.com/edubart/otclient.git
synced 2025-12-03 16:36:51 +01:00
Restore and fix compile warnings
This commit is contained in:
@@ -93,7 +93,7 @@ public:
|
||||
void update_what() {
|
||||
m_what = format("failed to cast value of type '%s' to type '%s'", demangle_type<T>(), demangle_type<R>());
|
||||
}
|
||||
virtual const char* what() { return m_what.c_str(); }
|
||||
virtual const char* what() const throw() { return m_what.c_str(); }
|
||||
private:
|
||||
std::string m_what;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user