Skip to content

Commit

Permalink
Conform to stricter CTAD rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Sep 30, 2024
1 parent cd15d3b commit b96ff7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 hat::fixed_signature s{std::byte{1}};
constexpr hat::fixed_signature<1> s{std::byte{1}};

std::vector<const_scan_result> results{};
hat::find_all_pattern(a.cbegin(), a.cend(), std::back_inserter(results), s);
Expand All @@ -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 hat::fixed_signature s{std::byte{1}};
constexpr hat::fixed_signature<1> s{std::byte{1}};

std::vector<const_scan_result> results{};
hat::find_all_pattern(a.cbegin(), a.cend(), std::back_inserter(results), s);
Expand All @@ -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 hat::fixed_signature s{std::byte{1}};
constexpr hat::fixed_signature<1> s{std::byte{1}};

std::array<const_scan_result, 2> results{};
const auto [scan_end, results_end] = hat::find_all_pattern(a.cbegin(), a.cend(), results.begin(), results.end(), s);
Expand Down

0 comments on commit b96ff7c

Please sign in to comment.