Commit 7a8fb9c0 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fix error in last commit

parent 64e65dc3
Pipeline #385 passed with stage
in 0 seconds
......@@ -49,10 +49,7 @@ public:
const char *what() const noexcept override;
std::string str() const {
mMessage = mOs.str();
return mMessage;
}
const std::string& str() const;
/* same as osstringstream, but as osstream does not have cp contructor, BctbxException can't inherit from
* osstream*/
......
......@@ -110,6 +110,11 @@ const char *BctbxException::what() const noexcept {
return str().c_str();
}
const std::string& BctbxException::str() const {
mMessage = mOs.str();
return mMessage;
}
std::ostream &operator<<(std::ostream &__os, const BctbxException &e) {
__os << e.str() << std::endl;
e.printStackTrace(__os);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment