mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 12:24:26 +02:00
fix: get_quantity_spec
compilation fixed on MSVC
This commit is contained in:
@@ -49,9 +49,10 @@ using reference_t = reference<MP_UNITS_REMOVE_CONST(decltype(Q)), MP_UNITS_REMOV
|
||||
|
||||
MP_UNITS_EXPORT_BEGIN
|
||||
|
||||
[[nodiscard]] consteval QuantitySpec auto get_quantity_spec(AssociatedUnit auto u)
|
||||
template<AssociatedUnit U>
|
||||
[[nodiscard]] consteval QuantitySpec auto get_quantity_spec(U)
|
||||
{
|
||||
return kind_of<detail::get_associated_quantity(u)>;
|
||||
return kind_of<detail::get_associated_quantity(U{})>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -34,7 +34,8 @@ struct reference;
|
||||
|
||||
MP_UNITS_EXPORT_BEGIN
|
||||
|
||||
[[nodiscard]] consteval QuantitySpec auto get_quantity_spec(AssociatedUnit auto u);
|
||||
template<AssociatedUnit U>
|
||||
[[nodiscard]] consteval QuantitySpec auto get_quantity_spec(U);
|
||||
|
||||
template<typename Q, typename U>
|
||||
[[nodiscard]] consteval QuantitySpec auto get_quantity_spec(reference<Q, U>)
|
||||
|
Reference in New Issue
Block a user