From 28e52c8412e0f7d3040a52b808adf50f26bc5238 Mon Sep 17 00:00:00 2001 From: Teemu Ollakka Date: Wed, 23 Jan 2019 11:41:34 +0200 Subject: [PATCH] Added runtime_error overload with const char* argument Needed to add new overload to get code compiled with AppleClang 10.0. --- include/wsrep/exception.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/wsrep/exception.hpp b/include/wsrep/exception.hpp index e79975c..ef19de9 100644 --- a/include/wsrep/exception.hpp +++ b/include/wsrep/exception.hpp @@ -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) {