Skip to content

Get rid of the ARRAY_TRAITS template parameter in Arrays #75

@mikir

Description

@mikir

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_TRAITS template parameter which will require the generation of the Array abstraction for each array type. In other words, the main idea is to move Array abstraction from the runtime library to the generation code. Such solution could potentially increase the size of the generated code. Therefore, a dedicated issue is needed for this.

More information can be found in the issue #67.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions