mp-units
mp-units copied to clipboard
`polymorphic_unit`???
Sometimes, people want to deal with quantities of a specific type but with a unit unknown at compile-time. For example, a specific unit might be obtained from some configuration file or from the web by some means. Right now we are forced to use std::variant
but it is far from being easy and user-friendly to use.
Maybe something like a polymorphic_unit
should be considered?