Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Array: Data type and calculation of element size #68

@adbridge

Description

@adbridge
  1. In struct array_link ,
    shouldn't uint8_t *data;
    be T *data; ?
  2. In the init function,
    _element_size = PoolAllocator::align_up(sizeof(T), alignment);
    Shouldn't alignment be calculated from 'alignof(T)' rather than coming in as an init parameter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions