Skip to content

within_abs() does not work with custom physical unit types #60

@alt-graph

Description

@alt-graph

As Olaf observed, code like this does not work:

    Meters org_gap{ original_gap_*1_mm };
    if (gul14::within_abs(gap_mm, org_gap, 0.1_mm)) ...

... despite the fact that the Meters class has all the behavior of a common double. Maybe we can allow custom types. I wish we had concepts. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions