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; }