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

Adding range type concept check #45

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Adding range type concept check #45

merged 2 commits into from
Oct 2, 2024

Conversation

whaeck
Copy link
Member

@whaeck whaeck commented Oct 2, 2024

This adds a range type concept check to the Container template on the AnyView constructor. This removes the issue on ubuntu clang (github CI compilation error) in the range-v3 removal branch.

In the error, a variant of either a reference_wrapper or AnyView needed to be created and the compiler got confused and tried to create an AnyView using a reference_wrapper, which fails because a reference_wrapper obviously does not have a begin() and end() method. Adding the concept switches off the constructor in this case, causing the compilation to no longer fail.

joewpeterson
joewpeterson previously approved these changes Oct 2, 2024
@whaeck whaeck merged commit 636c097 into develop Oct 2, 2024
8 checks passed
@whaeck whaeck deleted the update/concept-anyview branch October 2, 2024 15:26
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 this pull request may close these issues.

2 participants