Hello , today I found that ranges::view::all cannot accept a prvalue range.
For example , R = std::vector<int> is not a ranges::viewable_range.
But the same usage with std::ranges is ok , which shows difference with range-v3 .
According to range.all , all(std::vector<int>()) should be correct ( it is an owning_view in std::ranges ) .
It is actually "viewable" .
Hello , today I found that ranges::view::all cannot accept a prvalue range. For example ,
R = std::vector<int>
is not a ranges::viewable_range.But the same usage with std::ranges is ok , which shows difference with range-v3 . According to range.all ,
all(std::vector<int>())
should be correct ( it is an owning_view in std::ranges ) . It is actually "viewable" .(same code on godbolt)
Does we need to ensure any consistency between range-v3 & std::ranges ?