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
While toying with hello world, noticed that cpp2:args isn't usable with std::ranges.
cpp2:args
std::ranges
Suggesting to update definition to satisfy std::ranges::bidirectional_range, so that the following is possible:
std::ranges::bidirectional_range
main: (args) = { static_assert(std::bidirectional_iterator<cpp2::args::iterator>); static_assert(std::ranges::bidirectional_range<cpp2::args>); static_assert(std::ranges::viewable_range<cpp2::args>); // Output command line arguments, dropping the program name argc[0]. for args | std::ranges::views::drop(1) do (arg) { std::cout << arg << std::endl; } }
PR inbound...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
While toying with hello world, noticed that
cpp2:args
isn't usable withstd::ranges
.Suggesting to update definition to satisfy
std::ranges::bidirectional_range
, so that the following is possible:PR inbound...
The text was updated successfully, but these errors were encountered: