From 76057eaf7c104f04b6d9959373b4ffa5042f917d Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 26 Oct 2024 19:15:34 +0200 Subject: [PATCH] feat(example): `treat_as_floating_point` specializations for examples' types removed --- example/include/ranged_representation.h | 4 ---- example/include/validated_type.h | 3 --- example/measurement.cpp | 7 ++----- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/example/include/ranged_representation.h b/example/include/ranged_representation.h index aa5eb7256..0ffd5d70d 100644 --- a/example/include/ranged_representation.h +++ b/example/include/ranged_representation.h @@ -65,10 +65,6 @@ class ranged_representation : public validated_type constexpr bool mp_units::is_scalar> = mp_units::is_scalar; -template -constexpr bool mp_units::treat_as_floating_point> = - mp_units::treat_as_floating_point; - template struct MP_UNITS_STD_FMT::formatter, Char> : formatter { template diff --git a/example/include/validated_type.h b/example/include/validated_type.h index ec42f8938..c8b5dc6a7 100644 --- a/example/include/validated_type.h +++ b/example/include/validated_type.h @@ -116,9 +116,6 @@ class validated_type { template constexpr bool mp_units::is_scalar> = mp_units::is_scalar; -template -constexpr bool mp_units::treat_as_floating_point> = mp_units::treat_as_floating_point; - template std::basic_ostream& operator<<(std::basic_ostream& os, diff --git a/example/measurement.cpp b/example/measurement.cpp index b0cf594b0..596361132 100644 --- a/example/measurement.cpp +++ b/example/measurement.cpp @@ -131,12 +131,9 @@ class measurement { } // namespace -template -constexpr bool mp_units::treat_as_floating_point> = mp_units::treat_as_floating_point; - -template +template constexpr bool mp_units::is_scalar> = true; -template +template constexpr bool mp_units::is_vector> = true; static_assert(mp_units::RepresentationOf, mp_units::quantity_character::scalar>);