From 960417a34615dcaf43c6a72d37b2ef233b569947 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 20 Jun 2024 12:43:59 +0200 Subject: [PATCH] fix: reference specifiers export fixed --- .../mp-units/framework/reference_concepts.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/core/include/mp-units/framework/reference_concepts.h b/src/core/include/mp-units/framework/reference_concepts.h index 798e9411..0bd2a49d 100644 --- a/src/core/include/mp-units/framework/reference_concepts.h +++ b/src/core/include/mp-units/framework/reference_concepts.h @@ -91,17 +91,21 @@ struct absolute_ final { static constexpr Reference auto _original_reference_ = R{}; }; -template -MP_UNITS_EXPORT inline constexpr relative_ delta{}; +MP_UNITS_EXPORT_BEGIN template -MP_UNITS_EXPORT inline constexpr absolute_ absolute{}; +inline constexpr relative_ delta{}; + +template +inline constexpr absolute_ absolute{}; template -MP_UNITS_EXPORT concept DeltaReference = +concept DeltaReference = (Reference && !requires { get_unit(T{}).point_origin; }) || is_specialization_of; template -MP_UNITS_EXPORT concept AbsoluteReference = is_specialization_of; +concept AbsoluteReference = is_specialization_of; + +MP_UNITS_EXPORT_END } // namespace mp_units