C++ Logo

std-proposals

Advanced search

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

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Tue, 18 Jun 2024 18:07:34 +0300
On Tue, 18 Jun 2024 at 18:02, Mateusz Pusz <mateusz.pusz_at_[hidden]> wrote:
>
> I am not sure what you mean by "field types". Do you mean `year_month_day`?
>
> For now, we follow the `duration` and `time_point` design. C++ developers have been exposed to it for many years now, and it is successful in most cases. This is why we believe that a similar abstraction with `quantity` and `quantity_point` should also prove OK. Many people claim that affine space abstraction is a mandatory feature of the units library.

Well, if the design is similar, then you can't add a quantity to
another or multiply a quantity with a quantity, you can do that only
with quantity_points.
Is that the current design?

Received on 2024-06-18 15:07:48