ericniebler / range-v3

Range library for C++14/17/20, basis for C++20's std::ranges
Other
4.06k stars 437 forks source link

overly constrained `joinable_with_range` #1678

Open huixie90 opened 2 years ago

huixie90 commented 2 years ago

The concept joinable_with_range requires the element of the ranges to be semiregular. I can't find any reason why it has to be seriregular. https://github.com/ericniebler/range-v3/blob/83783f578e0e6666d68a3bf17b0038a80e62530e/include/range/v3/view/join.hpp#L523

One possible reason is one of the join overloads that takes an element and the implementation will create a single_view, and long time ago single_view required semiregular.