From edc203a837c79d9fec672134993dfa625b80de4b Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 10 Aug 2021 08:35:14 +0200 Subject: [PATCH] :alembic: try minimal example --- test/src/unit-disabled_exceptions.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/test/src/unit-disabled_exceptions.cpp b/test/src/unit-disabled_exceptions.cpp index 248a2134a..ed8800f81 100644 --- a/test/src/unit-disabled_exceptions.cpp +++ b/test/src/unit-disabled_exceptions.cpp @@ -76,11 +76,6 @@ class exception : public std::exception protected: exception(const char* what_arg) : m(what_arg) {} - static std::string name(const std::string& ename) - { - return "[json.exception." + ename + "] "; - } - private: std::runtime_error m; }; @@ -90,14 +85,12 @@ class parse_error : public exception public: static parse_error create(const std::string& what_arg) { - std::string w = exception::name("parse_error") + what_arg; + std::string w = "[json.exception.parse_error] " + what_arg; return parse_error(w.c_str()); } private: - parse_error(const char* what_arg) - : exception(what_arg) - {} + parse_error(const char* what_arg) : exception(what_arg) {} }; } // namespace detail2