1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

exception: use dynamic memory for std::runtime_error::what()

This commit is contained in:
Steffen Vogel 2019-03-26 06:51:44 +01:00
parent 77418a8994
commit 1e821ac690

View file

@ -117,7 +117,9 @@ public:
ss << " Please consult the user documentation for details:" << std::endl;
ss << " " << docUri() << std::endl;
return ss.str().c_str();
auto str = new std::string(ss.str());
return str->c_str();
}
};