From 208a5fbc7a9c99773b0467e259c8ee1266eac881 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Thu, 9 Sep 2021 13:37:18 +0200 Subject: Use runtime_exception() instead of exception() as the latter doesn't have a constructor that takes a message according to the C++20 standard --- zencore/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zencore/string.cpp') diff --git a/zencore/string.cpp b/zencore/string.cpp index 21ba5b204..3037df0e7 100644 --- a/zencore/string.cpp +++ b/zencore/string.cpp @@ -437,7 +437,7 @@ template [[noreturn]] void StringBuilderImpl::Fail(const char* reason) { - throw std::exception(reason); + throw std::runtime_error(reason); } // Instantiate templates once -- cgit v1.2.3