diff --git a/src/core/include/mp-units/framework/unit.h b/src/core/include/mp-units/framework/unit.h index e7786554..b4fbd126 100644 --- a/src/core/include/mp-units/framework/unit.h +++ b/src/core/include/mp-units/framework/unit.h @@ -206,7 +206,7 @@ struct named_unit : decltype(U)::_base_type_ { * @tparam QuantitySpec a specification of a quantity to be measured with this unit */ template - requires(!Symbol.empty()) && (QS.dimension == detail::get_associated_quantity(U).dimension) + requires(!Symbol.empty()) && (QS.dimension == decltype(detail::get_associated_quantity(U))::dimension) struct named_unit : decltype(U)::_base_type_ { using _base_type_ = named_unit; // exposition only static constexpr auto symbol = Symbol; ///< Unique unit identifier @@ -214,7 +214,7 @@ struct named_unit : decltype(U)::_base_type_ { }; template - requires(!Symbol.empty()) && (QS.dimension == detail::get_associated_quantity(U).dimension) + requires(!Symbol.empty()) && (QS.dimension == decltype(detail::get_associated_quantity(U))::dimension) struct named_unit : decltype(U)::_base_type_ { using _base_type_ = named_unit; // exposition only static constexpr auto symbol = Symbol; ///< Unique unit identifier