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

Get rid of the ARRAY_STORAGE template parameter in Arrays #74

Open
mikir opened this issue Feb 28, 2025 · 0 comments
Open

Get rid of the ARRAY_STORAGE template parameter in Arrays #74

mikir opened this issue Feb 28, 2025 · 0 comments
Milestone

Comments

@mikir
Copy link
Collaborator

mikir commented Feb 28, 2025

zserio::Array is cumbersome to use because it needs several template parameters:

template <typename RAW_ARRAY,
          ArrayType ARRAY_TYPE,
          ArrayStorage ARRAY_STORAGE = ArrayStorage::IMMUTABLE,
          typename ARRAY_TRAITS = ArrayTraits<typename RAW_ARRAY::value_type>>
class Array : public ArrayBase<ARRAY_TYPE> {};

This issue is about to get rid of the ARRAY_STORAGE template parameter which will require the implementation of the dedicated solution for offsets. The current idea is to implement a completely new abstraction, OffsetSetter, similar to the View abstraction. This would need a significant amount of work. Therefore we need a dedicated issue for that.

More information can be found in the issue #67.

@mikir mikir added this to the Backlog milestone Feb 28, 2025
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

No branches or pull requests

1 participant