From c6f35b02319a6fc03d837d0e656463440e114a98 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 18 Mar 2022 08:19:40 +0100 Subject: [PATCH] Update src/core/include/units/quantity_cast.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_cast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/units/quantity_cast.h b/src/core/include/units/quantity_cast.h index 5657d421..ea4b8412 100644 --- a/src/core/include/units/quantity_cast.h +++ b/src/core/include/units/quantity_cast.h @@ -82,10 +82,10 @@ template }; template - requires(!common_type_with_, std::intmax_t>) && + requires(!common_type_with_, std::intmax_t> && scalable_number_, std::intmax_t>&& requires { typename std::common_type_t::value_type; } && - common_type_with_::value_type, std::intmax_t> struct cast_traits { + common_type_with_::value_type, std::intmax_t>) struct cast_traits { using ratio_type = std::common_type_t::value_type, std::intmax_t>; using rep_type = std::common_type_t; };