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

No ranges support for collection types? #807

Closed
r-laf opened this issue Nov 29, 2020 · 3 comments · Fixed by #900
Closed

No ranges support for collection types? #807

r-laf opened this issue Nov 29, 2020 · 3 comments · Fixed by #900

Comments

@r-laf
Copy link

r-laf commented Nov 29, 2020

Hi!

Just to confirm. For the collection types, e.g. IVector, IMap. Currently there is no c++20 ranges support, right?

@kennykerr
Copy link
Collaborator

That's right - I don't yet know what would be involved in lighting that up. If you have, feel free to outline an approach and we can talk it through.

@sylveon
Copy link
Contributor

sylveon commented Feb 13, 2021

It seems that the issue is that std::ranges::_Begin::_Has_ADL doesn't matches for cppwinrt types, meaning that std::ranges::begin is disabled, this making the std::ranges::range concept that everything else relies upon not match.

@sylveon
Copy link
Contributor

sylveon commented Mar 29, 2021

The latest version supports C++ ranges now @zh4ui. There are errors in the IDE, but this is caused by IntelliSense and might be fixed soon™ (see microsoft/STL#1621).

For example:
image

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

Successfully merging a pull request may close this issue.

3 participants