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

Improve range trait #15

Open
alandefreitas opened this issue Apr 17, 2022 · 0 comments
Open

Improve range trait #15

alandefreitas opened this issue Apr 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@alandefreitas
Copy link
Owner

alandefreitas commented Apr 17, 2022

The problem

The range trait does not work properly for all range types.

Proposed solution

A new range trait using the ADL std::begin/end functions, such as this:

Other traits, such as is_iterator can also come from this reference repo.

Alternatives I've considered

The current implementation and the C++20 trait.

Additional context

This traits is very simple and it was enough for our purposes, but it's quite easy to change that to the correct traits.

@alandefreitas alandefreitas added the enhancement New feature or request label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant