aboutsummaryrefslogtreecommitdiff
path: root/zencore/string.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-09 13:37:18 +0200
committerMartin Ridgers <[email protected]>2021-09-14 14:29:28 +0200
commit208a5fbc7a9c99773b0467e259c8ee1266eac881 (patch)
treea17c9f26a6d2353bcb11ae00352fbe2e1e04218e /zencore/string.cpp
parentUse std::aligned_alloc() instead of Intel's _mm_malloc (diff)
downloadzen-208a5fbc7a9c99773b0467e259c8ee1266eac881.tar.xz
zen-208a5fbc7a9c99773b0467e259c8ee1266eac881.zip
Use runtime_exception() instead of exception() as the latter doesn't have a constructor that takes a message according to the C++20 standard
Diffstat (limited to 'zencore/string.cpp')
-rw-r--r--zencore/string.cpp2
1 files changed, 1 insertions, 1 deletions
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<typename C>
[[noreturn]] void
StringBuilderImpl<C>::Fail(const char* reason)
{
- throw std::exception(reason);
+ throw std::runtime_error(reason);
}
// Instantiate templates once