diff --git a/src/core/include/units/quantity.h b/src/core/include/units/quantity.h index b355f0be..9eb2722b 100644 --- a/src/core/include/units/quantity.h +++ b/src/core/include/units/quantity.h @@ -362,11 +362,11 @@ public: } template [[nodiscard]] friend constexpr Quantity auto operator-(const Value& lhs, const quantity& rhs) - requires requires { + requires requires { // TODO: Simplify when Clang catches up. requires !Quantity; - requires is_same_v; // TODO: Simplify + requires is_same_v; requires invoke_result_convertible_to_, Value, rep>; - } // when Clang catches up. + } { return units::quantity(lhs - rhs.number()); }