aboutsummaryrefslogtreecommitdiffstats
path: root/include/jau
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-02-26 22:26:37 +0100
committerSven Göthel <[email protected]>2024-02-26 22:26:37 +0100
commit82da87ad5cefdb345109be618626dfaaf0a51806 (patch)
tree50db7a2c948f0b14aad345f2ef12c617bc5d07e4 /include/jau
parent69ec578f5be5fe22ea87a2f01e5264471fd1f4a5 (diff)
ExceptionBase: Mark const string& conversion op noexcept
Diffstat (limited to 'include/jau')
-rw-r--r--include/jau/basic_types.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/jau/basic_types.hpp b/include/jau/basic_types.hpp
index 120895c..4745999 100644
--- a/include/jau/basic_types.hpp
+++ b/include/jau/basic_types.hpp
@@ -1,7 +1,6 @@
/*
* Author: Sven Gothel <[email protected]>
- * Copyright (c) 2020 Gothel Software e.K.
- * Copyright (c) 2020 ZAFENA AB
+ * Copyright (c) 2020-2024 Gothel Software e.K.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@@ -135,7 +134,7 @@ namespace jau {
const std::string& backtrace() const noexcept { return backtrace_; }
/** Allow conversion to `const std::string&`, as required by Catch2's `REQUIRE_THROWS_MATCHES` */
- operator const std::string& () const {return message(); };
+ operator const std::string& () const noexcept { return message(); };
virtual const char* what() const noexcept {
return what_.c_str(); // return std::runtime_error::what();