Open mpusz opened 11 months ago
We could implement those as:
inline constexpr struct height : quantity_spec<length> {} height;
inline constexpr struct depth : decltype(height) {} height;
inline constexpr struct altitude : decltype(height) {} height;
which would preserve the types in a quantity type.
But the below will not result in dimensionless
anymore:
static_assert(isq::height / isq::depth != dimensionless);
which may be a good thing?
Ideas? Comments?
height, depth, altitude
are aliases to the same quantity types. Right now, the library implements them as:which means that the user will always see
isq::height
in the quantity type even when another aliased name was used in the code.The feature associated with it is the fact that: