Skip to content

(v3) Creating an expression that simplifies to a certain dimension before including the dimension's header causes explicit specialization errors #357

Description

@Gold856

MRE:

#include <units/velocity.h>
#include <units/length.h>
auto x = 0_mps / 0_m;
#include <units/frequency.h>

This is particularly problematic when going between linear and angular velocities, since you'll briefly cancel out the distance unit before applying a new distance unit, so one of the expressions will result in Hz, effectively, which then conflicts with the frequency definitions.

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