From 0c09871bca37acb130a048bc5c5b2c620a1fac65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Thu, 18 Mar 2021 14:19:16 -0400 Subject: [PATCH] fix: do not forward declare reference's interface on MSVC --- src/core/include/units/reference.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/include/units/reference.h b/src/core/include/units/reference.h index 71e3e2e6..b8fc2ee9 100644 --- a/src/core/include/units/reference.h +++ b/src/core/include/units/reference.h @@ -89,6 +89,7 @@ struct reference { using dimension = D; using unit = U; +#if !UNITS_COMP_MSVC template requires Quantity || QuantityValue friend constexpr Quantity auto operator*(const QuantityOrQuantityValue& lhs, reference); @@ -96,6 +97,7 @@ struct reference { template requires Quantity || QuantityValue friend constexpr Quantity auto operator/(const QuantityOrQuantityValue& lhs, reference); +#endif }; template