From 1663aa082fc68a007ef43d3bb61783adf3ea0003 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 5 Feb 2024 20:43:36 +0100 Subject: [PATCH] fix: quantity_spec compilation fixed --- src/core/include/mp-units/quantity_spec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/include/mp-units/quantity_spec.h b/src/core/include/mp-units/quantity_spec.h index 0cb0f995..def030c6 100644 --- a/src/core/include/mp-units/quantity_spec.h +++ b/src/core/include/mp-units/quantity_spec.h @@ -121,7 +121,7 @@ struct quantity_spec_interface { (explicitly_convertible(std::remove_reference_t::quantity_spec, self)) { return quantity{std::forward(q).numerical_value_is_an_implementation_detail_, - reference::unit)>>{}}; + detail::make_reference(self, std::remove_cvref_t::unit)}; } #else template U> @@ -136,7 +136,7 @@ struct quantity_spec_interface { [[nodiscard]] constexpr Quantity auto operator()(Q&& q) const { return quantity{std::forward(q).numerical_value_is_an_implementation_detail_, - reference::unit)>>){}}; + detail::make_reference(Self{}, std::remove_cvref_t::unit)}; } #endif }; @@ -313,7 +313,7 @@ struct quantity_spec : std::remove_const_t { [[nodiscard]] constexpr Quantity auto operator()(Q&& q) const { return quantity{std::forward(q).numerical_value_is_an_implementation_detail_, - reference::unit> {}}; + detail::make_reference(Self{}, std::remove_cvref_t::unit)}; } #endif };