diff --git a/include/omath/omath.hpp b/include/omath/omath.hpp index 0427317..5e39ccf 100644 --- a/include/omath/omath.hpp +++ b/include/omath/omath.hpp @@ -85,4 +85,7 @@ // Reverse Engineering #include "omath/rev_eng/external_rev_object.hpp" -#include "omath/rev_eng/internal_rev_object.hpp" \ No newline at end of file +#include "omath/rev_eng/internal_rev_object.hpp" + +// Utility +#include "omath/utility/pattern_scan.hpp" \ No newline at end of file diff --git a/source/utility/pattern_scan.cpp b/source/utility/pattern_scan.cpp index ff593f7..2c0e328 100644 --- a/source/utility/pattern_scan.cpp +++ b/source/utility/pattern_scan.cpp @@ -10,7 +10,7 @@ namespace omath std::span::const_iterator PatternScanner::scan_for_pattern(const std::span& 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>, PatternScanError> PatternScanner::parse_pattern(const std::string_view& pattern_string)