diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 87b8e57..6e0c2a9 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -15,7 +15,7 @@ jobs: matrix: compiler: - { pkg: g++, exe: g++, version: 14 } -# - { pkg: clang, exe: clang++, version: 18 } + - { pkg: clang, exe: clang++, version: 18 } runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v3 diff --git a/src/Scanner.cpp b/src/Scanner.cpp index ed205e3..e80b1fb 100644 --- a/src/Scanner.cpp +++ b/src/Scanner.cpp @@ -100,7 +100,7 @@ namespace hat { consteval auto count_matches() { constexpr std::array a{std::byte{1}, std::byte{2}, std::byte{3}, std::byte{4}, std::byte{1}}; - constexpr auto s = hat::compile_signature<"01">(); + constexpr hat::fixed_signature s{std::byte{1}}; std::vector results{}; hat::find_all_pattern(a.cbegin(), a.cend(), std::back_inserter(results), s); @@ -110,7 +110,7 @@ namespace hat { static_assert([] { constexpr std::array a{std::byte{1}, std::byte{2}, std::byte{3}, std::byte{4}, std::byte{1}}; - constexpr auto s = hat::compile_signature<"01">(); + constexpr hat::fixed_signature s{std::byte{1}}; std::vector results{}; hat::find_all_pattern(a.cbegin(), a.cend(), std::back_inserter(results), s); @@ -120,7 +120,7 @@ namespace hat { static_assert([] { constexpr std::array a{std::byte{1}, std::byte{2}, std::byte{3}, std::byte{4}, std::byte{1}}; - constexpr auto s = hat::compile_signature<"01">(); + constexpr hat::fixed_signature s{std::byte{1}}; std::array results{}; const auto [scan_end, results_end] = hat::find_all_pattern(a.cbegin(), a.cend(), results.begin(), results.end(), s);