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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user