1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-24 10:42:31 +03:00

Added runtime_error overload with const char* argument

Needed to add new overload to get code compiled with
AppleClang 10.0.
This commit is contained in:
Teemu Ollakka
2019-01-23 11:41:34 +02:00
parent e61be45205
commit 28e52c8412

View File

@ -30,6 +30,15 @@ namespace wsrep
class runtime_error : public std::runtime_error
{
public:
runtime_error(const char* msg)
: std::runtime_error(msg)
{
if (abort_on_exception)
{
::abort();
}
}
runtime_error(const std::string& msg)
: std::runtime_error(msg)
{