Mateusz Pusz

Results 99 issues of Mateusz Pusz

Right now wee clone `std::chrono::duration` duration. Consider the usage of one of the following: - https://wg21.link/p0870 - https://wg21.link/p2509

enhancement
iso
design
gated

Right now, we only support equality comparisons, but maybe something like the one below makes sense? ```cpp if constexpr (q.unit > GHz) // ... if constexpr (q.unit > one) //...

design

Right now, magnitudes expand in the user-facing types, which makes them verbose and hard to understand. We could incorporate the same generic approach that we use for other entities as...

enhancement
high priority
design

Yesterday, I stumbled upon this article: https://randomascii.wordpress.com/2023/10/17/localization-failure-temperature-is-hard/ and prototyped the following solution for it: https://godbolt.org/z/6jo6xqeb8. Even though the "ice point" is the correct name for the beginning of the Celsius...

enhancement
question

`height, depth, altitude` are aliases to the same quantity types. Right now, the library implements them as: ```cpp inline constexpr struct height : quantity_spec {} height; inline constexpr auto depth...

question
design

`quantity_point::quantity_from(PointOrigin)` was added as a type safety interface over the previous getter `quantity_point::quantity_from_origin()` which was deemed unsafe. Also, we now have `quantity_point::quantity_ref_from(PointOrigin)` that returns the reference to the underlying storage...

question
design

Most probably, we will drop the default constructibility requirement of `std::regular` for representation types. With that, our internal casting function `sudo_cast` should not depend on it as well.

good first issue
refactor

ISO 80000 explicitly specifies quantities that have to be non-negative (width, thickness, diameter, radius). Some of the quantities are implicitly defined as non-negative. For example, "path length" is defined as...

enhancement
design

Expression templates are [simplified with the rules described in our docs](https://mpusz.github.io/mp-units/2.1/users_guide/framework_basics/interface_introduction/#simplifying-the-resulting-expression-templates). For units and dimensions, ordering is being done based on the symbol of this entity. This provides nice outputs...

design

This is a draft of things that I do a while ago (it requires rebase). Its purpose mainly is to discuss it against #492.