Skip to content

Added workaround for constructor constraint cycle#41

Merged
patrickroberts merged 1 commit intomainfrom
movable-constraint-depends-on-itself
Mar 28, 2026
Merged

Added workaround for constructor constraint cycle#41
patrickroberts merged 1 commit intomainfrom
movable-constraint-depends-on-itself

Conversation

@patrickroberts
Copy link
Copy Markdown
Collaborator

@patrickroberts patrickroberts commented Mar 25, 2026

This fixes an issue discovered when attempting to wrap any_view in another range adaptor like common_view and then attempting to use one of the member functions inherited from its CRTP base class view_interface, which mandate static_assert(view<D>); and error because the constraint viewable_range in any_view's constructor template causes it to depend on itself.

@patrickroberts patrickroberts force-pushed the movable-constraint-depends-on-itself branch from 2c0ee62 to 6bd1fed Compare March 28, 2026 20:35
@patrickroberts patrickroberts force-pushed the movable-constraint-depends-on-itself branch from 6bd1fed to 0fa2dbd Compare March 28, 2026 20:40
@patrickroberts patrickroberts merged commit 2189204 into main Mar 28, 2026
4 checks passed
@patrickroberts patrickroberts deleted the movable-constraint-depends-on-itself branch March 28, 2026 20:42
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.

1 participant