diff --git a/src/core/include/mp-units/framework/quantity_point.h b/src/core/include/mp-units/framework/quantity_point.h index fefaa8e9..452140d3 100644 --- a/src/core/include/mp-units/framework/quantity_point.h +++ b/src/core/include/mp-units/framework/quantity_point.h @@ -37,7 +37,6 @@ namespace mp_units { MP_UNITS_EXPORT template -// NOLINTNEXTLINE(bugprone-crtp-constructor-accessibility) struct absolute_point_origin { static constexpr QuantitySpec auto quantity_spec = QS; }; diff --git a/src/core/include/mp-units/framework/quantity_spec.h b/src/core/include/mp-units/framework/quantity_spec.h index 88920fce..5b402130 100644 --- a/src/core/include/mp-units/framework/quantity_spec.h +++ b/src/core/include/mp-units/framework/quantity_spec.h @@ -153,6 +153,9 @@ struct quantity_spec_interface { MP_UNITS_EXPORT_BEGIN +inline constexpr struct is_kind { +} is_kind; + /** * @brief Quantity Specification * @@ -178,9 +181,6 @@ template #endif struct quantity_spec; -inline constexpr struct is_kind { -} is_kind; - MP_UNITS_EXPORT_END /** diff --git a/src/core/include/mp-units/framework/reference_concepts.h b/src/core/include/mp-units/framework/reference_concepts.h index 826dfb44..ffed704b 100644 --- a/src/core/include/mp-units/framework/reference_concepts.h +++ b/src/core/include/mp-units/framework/reference_concepts.h @@ -45,14 +45,6 @@ struct is_specialization_of_reference> : std::true_type {}; MP_UNITS_EXPORT_BEGIN -/** - * @brief A concept matching all references in the library. - * - * Satisfied by all specializations of @c reference. - */ -template -concept Reference = AssociatedUnit || detail::is_specialization_of_reference::value; - [[nodiscard]] consteval QuantitySpec auto get_quantity_spec(AssociatedUnit auto u); template @@ -69,6 +61,14 @@ template return U{}; } +/** + * @brief A concept matching all references in the library. + * + * Satisfied by all specializations of @c reference. + */ +template +concept Reference = AssociatedUnit || detail::is_specialization_of_reference::value; + /** * @brief A concept matching all references with provided quantity spec *