call c_str()

This commit is contained in:
John Wiegley 2004-07-29 01:50:40 -04:00
parent 6215627935
commit c598550d50

View file

@ -14,7 +14,7 @@ class error : public std::exception
virtual ~error() throw() {}
virtual const char* what() const throw() {
return reason;
return reason.c_str();
}
};