diff --git a/src/include/units/customization_points.h b/src/include/units/customization_points.h index 02237684..5ff0306d 100644 --- a/src/include/units/customization_points.h +++ b/src/include/units/customization_points.h @@ -57,86 +57,4 @@ struct quantity_values { static constexpr Rep max() noexcept { return std::numeric_limits::max(); } }; - - -// // isnan -// namespace isnan_impl { - -// // non-ADL lookup block -// void isnan(); // undefined - -// template -// inline constexpr bool has_customization = false; - -// template -// requires requires(const T& t) { -// { isnan(t) } -> bool; -// } -// inline constexpr bool has_customization = true; - -// struct fn { -// template -// constexpr bool operator()(const T&) const -// { -// return false; -// } - -// template -// requires treat_as_floating_point -// constexpr bool operator()(const T& value) const -// { -// return std::isnan(value); -// } - -// template -// requires treat_as_floating_point && has_customization -// constexpr bool operator()(const T& value) const -// { -// return isnan(value); // uses ADL -// } -// }; -// } - -// inline constexpr isnan_impl::fn isnan{}; - -// // isfinite -// namespace isfinite_impl { - -// // non-ADL lookup block -// void isfinite(); // undefined - -// template -// inline constexpr bool has_customization = false; - -// template -// requires requires(const T& t) { -// { isfinite(t) } -> bool; -// } -// inline constexpr bool has_customization = true; - -// struct fn { -// template -// constexpr bool operator()(const T&) const -// { -// return true; -// } - -// template -// requires treat_as_floating_point -// constexpr bool operator()(const T& value) const -// { -// return std::isfinite(value); -// } - -// template -// requires treat_as_floating_point && has_customization -// constexpr bool operator()(const T& value) const -// { -// return isfinite(value); // uses ADL -// } -// }; -// } - -// inline constexpr isfinite_impl::fn isfinite{}; - } // namespace units