forked from mpusz/mp-units
feat: numerical_value_ref_in disallowed for rvalues
This commit is contained in:
@@ -82,7 +82,7 @@ template<ReferenceOf<currency> auto To, ReferenceOf<currency> auto From, auto PO
|
||||
quantity_point<To, PO, Rep> exchange_to(quantity_point<From, PO, Rep> q)
|
||||
{
|
||||
return quantity_point{zero + static_cast<Rep>(exchange_rate<q.unit, get_unit(To)>() *
|
||||
(q - q.absolute_point_origin).numerical_value_ref_in(q.unit)) *
|
||||
(q - q.absolute_point_origin).numerical_value_in(q.unit)) *
|
||||
To};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user