diff --git a/include/omath/utility/pattern_scan.hpp b/include/omath/utility/pattern_scan.hpp index 317bdaa..d8486f0 100644 --- a/include/omath/utility/pattern_scan.hpp +++ b/include/omath/utility/pattern_scan.hpp @@ -39,6 +39,10 @@ namespace omath static std::span::const_iterator scan_for_pattern(const std::span& range, const std::string_view& pattern); + [[nodiscard]] + static std::span::const_iterator scan_for_pattern(std::span&& range, + const std::string_view& pattern) = delete; + template requires std::input_or_output_iterator> static IteratorType scan_for_pattern(const IteratorType& begin, const IteratorType& end,