Open eroller opened 9 months ago
It seems like empty_view is missing something that is needed to use with any_view?
As a workaround I can first create a ref_view using ranges::views::all and then create an any_view from that,
ranges::any_view all_empty = ranges::views::all(ranges::views::empty<int>); // OK ranges::any_view empty = ranges::views::empty<int>; // ERROR
<source>:5:45: error: class template argument deduction failed: 5 | ranges::any_view empty = ranges::views::empty<int>; // ERROR | ^~~~~~~~~~ <source>:5:45: error: no matching function for call to 'any_view(const ranges::empty_view<int>&)'
https://godbolt.org/z/rWorsefM5
It seems like empty_view is missing something that is needed to use with any_view?
As a workaround I can first create a ref_view using ranges::views::all and then create an any_view from that,
https://godbolt.org/z/rWorsefM5