We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
height, depth, altitude are aliases to the same quantity types. Right now, the library implements them as:
height, depth, altitude
inline constexpr struct height : quantity_spec<length> {} height; inline constexpr auto depth = height; inline constexpr auto altitude = height;
which means that the user will always see isq::height in the quantity type even when another aliased name was used in the code.
isq::height
The feature associated with it is the fact that:
static_assert(isq::height / isq::depth == dimensionless);
The text was updated successfully, but these errors were encountered:
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:
dimensionless
static_assert(isq::height / isq::depth != dimensionless);
which may be a good thing?
Ideas? Comments?
Sorry, something went wrong.
No branches or pull requests
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:
static_assert(isq::height / isq::depth == dimensionless);
The text was updated successfully, but these errors were encountered: