C++ Logo

std-proposals

Advanced search

Re: [std-proposals] On the standardization of mp-units P3045R1

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Wed, 19 Jun 2024 14:19:39 +0200
Why does in need an object parameter compared to? gp.in <http://qp.in> <deg_F>().quantity_from_zero() Is there a reason? -----Ursprüngliche Nachricht----- Von:Mateusz Pusz <mateusz.pusz_at_[hidden]> Gesendet:Mi 19.06.2024 13:45 Betreff:Re: [std-proposals] On the standardization of mp-units P3045R1 An:std-proposals_at_[hidden]; CC:Sebastian Wittmeier <wittmeier_at_[hidden]>; While writing the answer to Ville, I realized that there is one more issue. We will have to write: quantity_point qp(20 * rel_deg_C); std::cout << qp.in <http://qp.in> (rel_deg_F).quantity_from_zero(); Which might be confusing for scaling quantity_point. Also, we will need to add `rel_` to Kelvins and all its prefixes for the same reason as in the other email.

Received on 2024-06-19 12:19:43