Skip to content

Use mp-units approach for storing complex units #5

@Logarithmus

Description

@Logarithmus

This will allow seamless combination of different base dimensions, e. g. Time with Angle, DigitalInfo (Byte & Bit) and also store only non-zero unit exponents, instead of ISQ. The motivation is explained in Extensibility and make_dimension sections of CppCon 2019 talk.

  • store unit exponents in a recursive type-level HList (emulate missing variadic generics)
  • implement sort for HList (bubble, selection or qsort)
  • implement merge operation for 2 sorted HLists
  • consolidate unit exponents of same dimension

Useful links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions