mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-06 13:44:27 +02:00
fix: do not forward declare reference's interface on MSVC
This commit is contained in:
committed by
Mateusz Pusz
parent
018c5837f9
commit
0c09871bca
@@ -89,6 +89,7 @@ struct reference {
|
|||||||
using dimension = D;
|
using dimension = D;
|
||||||
using unit = U;
|
using unit = U;
|
||||||
|
|
||||||
|
#if !UNITS_COMP_MSVC
|
||||||
template<typename QuantityOrQuantityValue, typename D2, typename U2>
|
template<typename QuantityOrQuantityValue, typename D2, typename U2>
|
||||||
requires Quantity<QuantityOrQuantityValue> || QuantityValue<QuantityOrQuantityValue>
|
requires Quantity<QuantityOrQuantityValue> || QuantityValue<QuantityOrQuantityValue>
|
||||||
friend constexpr Quantity auto operator*(const QuantityOrQuantityValue& lhs, reference<D2, U2>);
|
friend constexpr Quantity auto operator*(const QuantityOrQuantityValue& lhs, reference<D2, U2>);
|
||||||
@@ -96,6 +97,7 @@ struct reference {
|
|||||||
template<typename QuantityOrQuantityValue, typename D2, typename U2>
|
template<typename QuantityOrQuantityValue, typename D2, typename U2>
|
||||||
requires Quantity<QuantityOrQuantityValue> || QuantityValue<QuantityOrQuantityValue>
|
requires Quantity<QuantityOrQuantityValue> || QuantityValue<QuantityOrQuantityValue>
|
||||||
friend constexpr Quantity auto operator/(const QuantityOrQuantityValue& lhs, reference<D2, U2>);
|
friend constexpr Quantity auto operator/(const QuantityOrQuantityValue& lhs, reference<D2, U2>);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
template<Reference R1, Reference R2>
|
template<Reference R1, Reference R2>
|
||||||
|
Reference in New Issue
Block a user