fix: magnitude get_value fixed for clang-17

This commit is contained in:
Mateusz Pusz committed 2024-06-07 09:41:13 +02:00
1 parent e5151141fb
commit d87bb70063
2 files changed
+12 -13

No files matched your search

@@ -118,8 +118,7 @@ namespace detail {
constexpr auto as_ratio(Magnitude auto m)
requires(decltype(is_rational(decltype(m){}))::value)
{
return std::ratio<decltype(get_value<std::intmax_t>(numerator(m))){},
decltype(get_value<std::intmax_t>(denominator(m))){}>{};
return std::ratio<get_value<std::intmax_t>(numerator(m)), get_value<std::intmax_t>(denominator(m))>{};
}
} // namespace detail