Skip to content

Commit be90bc4

Browse files
committed
avoid ranges | operator due to ETL conflict
1 parent be95db0 commit be90bc4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hid-rp/hid/report_protocol.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ struct report_protocol_properties
167167
[[nodiscard]] constexpr report::id::type max_report_id(report::type type) const
168168
{
169169
const auto& sizes = report_bit_sizes_[static_cast<std::size_t>(type) - 1];
170-
auto rit = std::ranges::find_if(sizes | std::views::reverse,
170+
auto rit = std::ranges::find_if(std::views::reverse(sizes),
171171
[](size_type x) { return x != 0; });
172172
return rit == sizes.rend() ? 0 : std::distance(rit, sizes.rend()) - 1;
173173
}
174174

175175
[[nodiscard]] constexpr size_type report_count() const
176176
{
177-
return static_cast<size_type>(std::ranges::count_if(
178-
report_bit_sizes_ | std::views::join, [](auto v) { return v > 0; }));
177+
return static_cast<size_type>(std::ranges::count_if(std::views::join(report_bit_sizes_),
178+
[](auto v) { return v > 0; }));
179179
}
180180
[[nodiscard]] constexpr report::id::type report_count(report::type type) const
181181
{

0 commit comments

Comments
 (0)