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

Refactor util::pack_vector_fields to use array::ArrayViewVariant #226

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from

Conversation

odlomax
Copy link
Contributor

@odlomax odlomax commented Sep 25, 2024

This PR refactors util::pack_vector_fields to use std::variant<ArrayViews...> with std::visit, as opposed to nested switch statements to resolve the possible Value types and Rank values for different arrays.

I also found it beneficial to refactor array::make_view_variant such that it produces either a variant of const or a variant of non- const ArrayView types.

This PR needs #220 and #224 to be merged first.

@wdeconinck
Copy link
Member

@odlomax Ready for rebase / conflict resolution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants