Update src/core/include/units/quantity_cast.h

Co-authored-by: Johel Ernesto Guerrero Peña <johelegp@gmail.com>
This commit is contained in:
Mateusz Pusz
2022-03-18 08:19:40 +01:00
committed by GitHub
parent 144f6951c0
commit c6f35b0231

View File

@@ -82,10 +82,10 @@ template<typename From, typename To>
};
template<typename From, typename To>
requires(!common_type_with_<std::common_type_t<From, To>, std::intmax_t>) &&
requires(!common_type_with_<std::common_type_t<From, To>, std::intmax_t> &&
scalable_number_<std::common_type_t<From, To>,
std::intmax_t>&& requires { typename std::common_type_t<From, To>::value_type; } &&
common_type_with_<typename std::common_type_t<From, To>::value_type, std::intmax_t> struct cast_traits<From, To> {
common_type_with_<typename std::common_type_t<From, To>::value_type, std::intmax_t>) struct cast_traits<From, To> {
using ratio_type = std::common_type_t<typename std::common_type_t<From, To>::value_type, std::intmax_t>;
using rep_type = std::common_type_t<From, To>;
};