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