fix: magnitude get_value fixed for clang-17
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user