call c_str()
This commit is contained in:
parent
6215627935
commit
c598550d50
1 changed files with 1 additions and 1 deletions
2
error.h
2
error.h
|
|
@ -14,7 +14,7 @@ class error : public std::exception
|
||||||
virtual ~error() throw() {}
|
virtual ~error() throw() {}
|
||||||
|
|
||||||
virtual const char* what() const throw() {
|
virtual const char* what() const throw() {
|
||||||
return reason;
|
return reason.c_str();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue