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; };