From e9eaa6c4cbd0881e3b0c1fa442005744317ab2ec Mon Sep 17 00:00:00 2001 From: Aleksandr Orefkov Date: Wed, 5 Aug 2026 14:36:02 +0300 Subject: [PATCH] Fix noexcept in find_or_throw --- include/simstr/strexpr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/simstr/strexpr.h b/include/simstr/strexpr.h index 7d786e4..6499ab9 100644 --- a/include/simstr/strexpr.h +++ b/include/simstr/strexpr.h @@ -3818,7 +3818,7 @@ public: * @return size_t - the position of the beginning of the substring occurrence, or throws an Exc exception if not found. */ template requires std::is_constructible_v - constexpr size_t find_or_throw(str_piece pattern, size_t offset = 0, Args&& ... args) const noexcept { + constexpr size_t find_or_throw(str_piece pattern, size_t offset = 0, Args&& ... args) const { if (auto fnd = find(pattern.symbols(), pattern.length(), offset); fnd != str::npos) { return fnd; }