1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-16 02:01:44 +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 class runtime_error : public std::runtime_error
{ {
public: public:
runtime_error(const char* msg)
: std::runtime_error(msg)
{
if (abort_on_exception)
{
::abort();
}
}
runtime_error(const std::string& msg) runtime_error(const std::string& msg)
: std::runtime_error(msg) : std::runtime_error(msg)
{ {