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

Use std::contiguous_iterator_tag if available #150

Closed
patlefort opened this issue Jul 5, 2020 · 1 comment
Closed

Use std::contiguous_iterator_tag if available #150

patlefort opened this issue Jul 5, 2020 · 1 comment

Comments

@patlefort
Copy link

patlefort commented Jul 5, 2020

vector's iterator should provide a std::iterator_traits specialization with iterator_concept = std::contiguous_iterator_tag if it's available. Otherwise, it is for example unusable with std::span if you pass it as a range.

@igaztanaga
Copy link
Member

Thanks for the request. Tested in GCC and MSVC, it will surely need additional tweaks for Clang/C++ depending on LWG3446 resolution implementation in libc++.

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

2 participants