Skip to content
Discussion options

You must be logged in to vote

Users should never instantiate derived_XXX types by themselves. Just use regular arithmetic. For example:

constexpr auto x = mp_units::si::metre / mp_units::per<mp_units::si::second>;

A similar example can be found in https://mpusz.github.io/mp-units/latest/getting_started/quick_start/#__tabbed_5_3 of our docs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mathisloge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #711 on August 02, 2025 20:06.