mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 13:14:29 +02:00
fix(gcc9): wrong use of Concepts TS terse syntax
This commit is contained in:
committed by
Mateusz Pusz
parent
5f21106a02
commit
fb88a441c9
@@ -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();
|
||||
|
Reference in New Issue
Block a user