mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 05:04:27 +02:00
style: 🔥 dead code in customization_points.h removed
This commit is contained in:
@@ -57,86 +57,4 @@ struct quantity_values {
|
||||
static constexpr Rep max() noexcept { return std::numeric_limits<Rep>::max(); }
|
||||
};
|
||||
|
||||
|
||||
|
||||
// // isnan
|
||||
// namespace isnan_impl {
|
||||
|
||||
// // non-ADL lookup block
|
||||
// void isnan(); // undefined
|
||||
|
||||
// template<typename>
|
||||
// inline constexpr bool has_customization = false;
|
||||
|
||||
// template<typename T>
|
||||
// requires requires(const T& t) {
|
||||
// { isnan(t) } -> bool;
|
||||
// }
|
||||
// inline constexpr bool has_customization<T> = true;
|
||||
|
||||
// struct fn {
|
||||
// template<typename T>
|
||||
// constexpr bool operator()(const T&) const
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// template<typename T>
|
||||
// requires treat_as_floating_point<T>
|
||||
// constexpr bool operator()(const T& value) const
|
||||
// {
|
||||
// return std::isnan(value);
|
||||
// }
|
||||
|
||||
// template<typename T>
|
||||
// requires treat_as_floating_point<T> && has_customization<T>
|
||||
// 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<typename>
|
||||
// inline constexpr bool has_customization = false;
|
||||
|
||||
// template<typename T>
|
||||
// requires requires(const T& t) {
|
||||
// { isfinite(t) } -> bool;
|
||||
// }
|
||||
// inline constexpr bool has_customization<T> = true;
|
||||
|
||||
// struct fn {
|
||||
// template<typename T>
|
||||
// constexpr bool operator()(const T&) const
|
||||
// {
|
||||
// return true;
|
||||
// }
|
||||
|
||||
// template<typename T>
|
||||
// requires treat_as_floating_point<T>
|
||||
// constexpr bool operator()(const T& value) const
|
||||
// {
|
||||
// return std::isfinite(value);
|
||||
// }
|
||||
|
||||
// template<typename T>
|
||||
// requires treat_as_floating_point<T> && has_customization<T>
|
||||
// constexpr bool operator()(const T& value) const
|
||||
// {
|
||||
// return isfinite(value); // uses ADL
|
||||
// }
|
||||
// };
|
||||
// }
|
||||
|
||||
// inline constexpr isfinite_impl::fn isfinite{};
|
||||
|
||||
} // namespace units
|
||||
|
Reference in New Issue
Block a user