mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-07 06:04:27 +02:00
Guessing at what MSVC wants
This commit is contained in:
@@ -337,7 +337,7 @@ struct magnitude {
|
|||||||
|
|
||||||
// The value of this magnitude, expressed in a given type.
|
// The value of this magnitude, expressed in a given type.
|
||||||
template<typename T>
|
template<typename T>
|
||||||
requires is_magnitude_integral || std::is_floating_point_v<T>
|
requires (magnitude::is_magnitude_integral || std::is_floating_point_v<T>)
|
||||||
static constexpr T value = detail::checked_static_cast<T>(
|
static constexpr T value = detail::checked_static_cast<T>(
|
||||||
(detail::compute_base_power<T>(BPs) * ...));
|
(detail::compute_base_power<T>(BPs) * ...));
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user