From d7261c8f7624fc2a3dc4d0f9cb704556a5369b6d Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 4 Sep 2023 12:30:14 +0200 Subject: [PATCH] fix(example): `treat_as_floating_point` specified for `validated_type` and `ranged_representation` --- example/include/ranged_representation.h | 4 ++++ example/include/validated_type.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/example/include/ranged_representation.h b/example/include/ranged_representation.h index d0a725a9..82f51846 100644 --- a/example/include/ranged_representation.h +++ b/example/include/ranged_representation.h @@ -55,6 +55,10 @@ public: template inline constexpr bool mp_units::is_scalar> = mp_units::is_scalar; +template +inline constexpr bool mp_units::treat_as_floating_point> = + mp_units::treat_as_floating_point; + template struct MP_UNITS_STD_FMT::formatter> : formatter { template diff --git a/example/include/validated_type.h b/example/include/validated_type.h index 2f09563d..15d540bc 100644 --- a/example/include/validated_type.h +++ b/example/include/validated_type.h @@ -104,6 +104,10 @@ public: template inline constexpr bool mp_units::is_scalar> = mp_units::is_scalar; +template +inline constexpr bool mp_units::treat_as_floating_point> = + mp_units::treat_as_floating_point; + template std::basic_ostream& operator<<(std::basic_ostream& os,