fix(gcc9): wrong use of Concepts TS terse syntax

This commit is contained in:
Johel Ernesto Guerrero Peña
2020-06-17 15:31:22 +02:00
committed by Mateusz Pusz
parent 5f21106a02
commit fb88a441c9
+2 -1
View File
@@ -220,7 +220,8 @@ quantity_point(quantity<D, U, Rep>) -> quantity_point<D, U, Rep>;
return quantity_point(lhs.relative() - rhs);
}
[[nodiscard]] constexpr Quantity AUTO operator-(const QuantityPoint AUTO& lhs, const QuantityPoint AUTO& rhs)
template<QuantityPoint QP1, QuantityPoint QP2>
[[nodiscard]] constexpr Quantity AUTO operator-(const QP1& lhs, const QP2& rhs)
requires requires { lhs.relative() - rhs.relative(); }
{
return lhs.relative() - rhs.relative();