Skip to content

Adding range type concept check#45

Merged
whaeck merged 2 commits into
developfrom
update/concept-anyview
Oct 2, 2024
Merged

Adding range type concept check#45
whaeck merged 2 commits into
developfrom
update/concept-anyview

Conversation

@whaeck

@whaeck whaeck commented Oct 2, 2024

Copy link
Copy Markdown
Member

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
@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