added global header

This commit is contained in:
2025-10-06 14:36:00 +03:00
parent e7ccc2ead0
commit 42e46f9921
2 changed files with 5 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ namespace omath
std::span<std::byte>::const_iterator
PatternScanner::scan_for_pattern(const std::span<std::byte>& range, const std::string_view& pattern)
{
return scan_for_pattern(range.begin(), range.end(), pattern);
return scan_for_pattern(range.cbegin(), range.cend(), pattern);
}
std::expected<std::vector<std::optional<std::byte>>, PatternScanError>
PatternScanner::parse_pattern(const std::string_view& pattern_string)