mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
fix: reference specifiers export fixed
This commit is contained in:
@@ -91,17 +91,21 @@ struct absolute_ final {
|
||||
static constexpr Reference auto _original_reference_ = R{};
|
||||
};
|
||||
|
||||
template<Reference auto R>
|
||||
MP_UNITS_EXPORT inline constexpr relative_<MP_UNITS_REMOVE_CONST(decltype(R))> delta{};
|
||||
MP_UNITS_EXPORT_BEGIN
|
||||
|
||||
template<Reference auto R>
|
||||
MP_UNITS_EXPORT inline constexpr absolute_<MP_UNITS_REMOVE_CONST(decltype(R))> absolute{};
|
||||
inline constexpr relative_<MP_UNITS_REMOVE_CONST(decltype(R))> delta{};
|
||||
|
||||
template<Reference auto R>
|
||||
inline constexpr absolute_<MP_UNITS_REMOVE_CONST(decltype(R))> absolute{};
|
||||
|
||||
template<typename T>
|
||||
MP_UNITS_EXPORT concept DeltaReference =
|
||||
concept DeltaReference =
|
||||
(Reference<T> && !requires { get_unit(T{}).point_origin; }) || is_specialization_of<T, relative_>;
|
||||
|
||||
template<typename T>
|
||||
MP_UNITS_EXPORT concept AbsoluteReference = is_specialization_of<T, absolute_>;
|
||||
concept AbsoluteReference = is_specialization_of<T, absolute_>;
|
||||
|
||||
MP_UNITS_EXPORT_END
|
||||
|
||||
} // namespace mp_units
|
||||
|
Reference in New Issue
Block a user