diff --git a/example/include/ranged_representation.h b/example/include/ranged_representation.h index d0a725a90..82f518468 100644 --- a/example/include/ranged_representation.h +++ b/example/include/ranged_representation.h @@ -55,6 +55,10 @@ class ranged_representation : public validated_type 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 2f09563db..15d540bc8 100644 --- a/example/include/validated_type.h +++ b/example/include/validated_type.h @@ -104,6 +104,10 @@ class validated_type { 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,