Try inlining the fold expression to satisfy (?) MSVC

This commit is contained in:
Chip Hogg
2022-01-28 22:24:30 +00:00
parent 2384276ae0
commit 811b6ba53d

View File

@@ -336,7 +336,7 @@ struct magnitude {
// The value of this magnitude, expressed in a given type.
template<typename T>
requires (magnitude::is_magnitude_integral || std::is_floating_point_v<T>)
requires (std::is_floating_point_v<T> || (detail::is_integral(BPs) && ...))
static constexpr T value = detail::checked_static_cast<T>(
(detail::compute_base_power<T>(BPs) * ...));
};