Mateusz Pusz
Mateusz Pusz
I am sorry that it takes so long to address this issue. We will not fix the old version, and unfortunately, MSVC still crashes in multiple places on the V2...
And what about conversions back to the number? `f(static_cast(q))` is not much shorter than `f(q.numerical_value_in(one))` and probably not nicer as well.
BTW, lack of implicit conversion to a `quantity` would probably prevent us from simplifying expressions like this one: ```cpp static_assert(10 * km / (5 * km) == 2 * one);...
> a requirement to standardize is the code must generically interoperate with the rest of `std` This actually is not the requirement of the standardization process. > I don't see...
Do you mean `unif(0, 1)` to be uniform distribution? If so, I do not see a reason why it should not have units attached to it. We do support such...
It is even worse, class templates do not work with UDL 😉 so including `` will not help.
> In fact the claim in mp-units to be able to represent different systems is not upheld in practise. It provides one system and uses that as the basis for...
> if you cant change the semantics of operations ( so result type of op) then effectively you are limited to one system, since different systems will have different semantics...
> // alias to mp_units:: "quantity of dimension one" template concept dimensionless_quantity = ...; I do not think that having a separate concept for a dimensionless quantity is a good...
It depends on what we call a "quantity" here. In generic programming, you may expect that dividing two `quantity` types will yield a `quantity` type as well. After that, you...