We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: