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:
parent
77418a8994
commit
1e821ac690
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue