Closed Arsennnic closed 2 weeks ago
The predicate that you pass to chunk_by
has to be equality-preserving - it always has to provide the same output for the same inputs. A mutating function that changes answers like this violates the semantic constraints chunk_by
.
I notice that
ranges::views::chunk_by
andstd::views::chunk_by
may return different results with a mutable lambda function.gcc version: 14.1 range-v3 version: 0.12.0