diff --git a/src/core/include/units/quantity.h b/src/core/include/units/quantity.h index 75d81d5f..3d47d440 100644 --- a/src/core/include/units/quantity.h +++ b/src/core/include/units/quantity.h @@ -312,18 +312,16 @@ public: return units::quantity(lhs - rhs.number()); } - template - requires (!Quantity) && - invoke_result_convertible_to_, rep, const Value&> + template + requires invoke_result_convertible_to_, rep, const Value&> [[nodiscard]] friend constexpr Quantity auto operator*(const quantity& q, const Value& v) { using ret = quantity, rep, Value>>; return ret(q.number() * v); } - template - requires (!Quantity) && - invoke_result_convertible_to_, const Value&, rep> + template + requires invoke_result_convertible_to_, const Value&, rep> [[nodiscard]] friend constexpr Quantity auto operator*(const Value& v, const quantity& q) { using ret = quantity, Value, rep>>;