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

Add a OPoint type that takes type-level integers instead of const-generics #943

Merged
merged 4 commits into from Jul 10, 2021

Conversation

sebcrozet
Copy link
Member

This PRs change the Point type so that its underlying implementation is based on type-level integers instead of const-generics. This introduces OPoint which takes type-level integers for its dimension, and Point is now a type-alias that takes const-generics for its dimension.

This changes is effectively a partial rollback of our migration to const-generics. This was requires because only allowing const-generics for point dimensions would code severe breakage on generic code using points. (And these breakage were unfixable because of the current limitations of const-generics.)

@sebcrozet sebcrozet merged commit 7bcb546 into dev Jul 10, 2021
@sebcrozet sebcrozet deleted the point_dim_name branch July 10, 2021 09:40
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.

None yet

2 participants