Mateusz Pusz

Results 651 comments of Mateusz Pusz

@NAThompson, I plan to work on this in the next days. There are two ways to somehow address it: 1. Allow implicit conversion from the raw number to a quantity...

It is difficult for me to answer this question as I do not know your code. Can you provide a specific code snippets that do not work right now but...

I would say that the former is out of scope for this issue. It can be addressed by providing a specific token in a grammar, and the implementation would be...

> We probably shouldn't do it. Of course, I do not claim we should implement it now, but at least consider if we find it useful and discuss the implementation...

> We don't have types to represent non-integral amounts of an unit. Why would we need it? My understanding is that we will be working with proper units but only...

https://www.boost.org/doc/libs/1_83_0/doc/html/boost_units/Examples.html#boost_units.Examples.RuntimeUnits

If we would like to have it, it would probably only make sense for the unit of the same quantity? Please note that this would be inconsistent with the equality...

I think it has more sense in a generic context when you deal with a function like: ```cpp template Unit auto divide(U1, U2) { if constexpr(U1{} == U2{}) return one;...

I see your point. I will make sure it will be discussed in the upcoming ISO C++ Committee meeting in Kona when we will be talking about https://wg21.link/p2982#ordering.

Having a kind as a constraint for equality is tricky: - some systems of units do not have associated kinds (e.g. natural units) - sometimes, the kind may be the...