File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments