mp-units icon indicating copy to clipboard operation
mp-units copied to clipboard

`polymorphic_unit`???

Open mpusz opened this issue 10 months ago • 14 comments

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?

mpusz avatar Aug 27 '23 06:08 mpusz