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

[FIX] Correctly propagate the constness of the inner range type. #3262

Merged
merged 2 commits into from
Jul 4, 2024

Conversation

rrahn
Copy link
Contributor

@rrahn rrahn commented Jul 4, 2024

Instead of using the value type of the underlying range we use the reference type, such that in case the original range is passed in as const it is correctly propagated to the inner range type. Otherwise, we might end in the situation that we want to assign a const iterator to a non-const iterator which is not allowed.

Copy link

vercel bot commented Jul 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
seqan3 ✅ Ready (Inspect) Visit Preview Jul 4, 2024 0:55am

@seqan-actions seqan-actions added the lint [INTERNAL] signal for linting label Jul 4, 2024
@seqan-actions seqan-actions removed the lint [INTERNAL] signal for linting label Jul 4, 2024
@rrahn rrahn requested a review from eseiler July 4, 2024 12:08
@rrahn rrahn force-pushed the fix/propagate_const_in_simd_view branch from a89446b to a539f67 Compare July 4, 2024 12:36
@seqan-actions seqan-actions added lint [INTERNAL] signal for linting and removed lint [INTERNAL] signal for linting labels Jul 4, 2024
@eseiler eseiler enabled auto-merge (squash) July 4, 2024 12:48
Instead of using the value type of the underlying range we use the reference type, such that in case the original range is passed in as const it is correctly propagated to the inner range type.
Otherwise, we might end in the situation that we want to assign a const iterator to a non-const iterator which is not allowed.
@rrahn rrahn force-pushed the fix/propagate_const_in_simd_view branch from a539f67 to e7a373b Compare July 4, 2024 12:54
@seqan-actions seqan-actions added lint [INTERNAL] signal for linting and removed lint [INTERNAL] signal for linting labels Jul 4, 2024
@eseiler eseiler merged commit ad4e56d into seqan:main Jul 4, 2024
32 checks passed
@rrahn rrahn deleted the fix/propagate_const_in_simd_view branch July 4, 2024 13: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.

3 participants