Skip to content
New issue

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

Using std::size_t in std23::views::chunk does not compile #30

Open
whaeck opened this issue May 17, 2024 · 0 comments
Open

Using std::size_t in std23::views::chunk does not compile #30

whaeck opened this issue May 17, 2024 · 0 comments

Comments

@whaeck
Copy link
Member

whaeck commented May 17, 2024

The following code does not seem to compile:

using namespace njoy::tools;
std::vector< int > vector = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
std::size_t size = 2;
auto view = vector | std23::views::chunk( size );

Using int instead of std::size_t seems to compile just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant