From 6e59e7a9277ae9eefd6c26e48dc87d282b3d23c0 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 18 Mar 2022 08:20:08 +0100 Subject: [PATCH] Update src/core/include/units/quantity.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Johel Ernesto Guerrero Peña --- src/core/include/units/quantity.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/include/units/quantity.h b/src/core/include/units/quantity.h index 8b5056a4..1d20c5ad 100644 --- a/src/core/include/units/quantity.h +++ b/src/core/include/units/quantity.h @@ -331,11 +331,11 @@ public: // Below friend functions are to be found via argument-dependent lookup only template [[nodiscard]] friend constexpr Quantity auto operator+(const quantity& lhs, const Value& 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_, rep, Value>; - } // when Clang catches up. + } { return units::quantity(lhs.number() + rhs); }