mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 18:37:15 +02:00
refactor: quantity_point
default-constructibility removed from the quantity_from
constraints
This commit is contained in:
@ -295,7 +295,7 @@ public:
|
||||
#endif
|
||||
|
||||
template<PointOrigin PO2>
|
||||
requires requires { quantity_point{} - PO2{}; }
|
||||
requires requires(quantity_point qp) { qp - PO2{}; }
|
||||
[[nodiscard]] constexpr Quantity auto quantity_from(PO2) const
|
||||
{
|
||||
return *this - PO2{};
|
||||
|
Reference in New Issue
Block a user