Restore and fix compile warnings

This commit is contained in:
Eduardo Bart
2012-06-17 18:47:05 -03:00
parent ad04043a88
commit f650b0e5bb
8 changed files with 11 additions and 10 deletions

View File

@@ -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;
};