Remove a deprecated option

This commit is contained in:
Victor Zverovich 2023-03-19 12:17:43 -07:00
parent 6549ffde8e
commit 6002ddf825

View File

@ -1483,18 +1483,6 @@ template <typename Context> struct arg_mapper {
return values; return values;
} }
#ifdef FMT_DEPRECATED_IMPLICIT_ENUMS
template <typename T,
FMT_ENABLE_IF(
std::is_enum<T>::value&& std::is_convertible<T, int>::value &&
!has_format_as<T>::value && !has_formatter<T, Context>::value &&
!has_fallback_formatter<T, char_type>::value)>
FMT_DEPRECATED FMT_CONSTEXPR FMT_INLINE auto map(const T& val)
-> decltype(this->map(static_cast<underlying_t<T>>(val))) {
return map(static_cast<underlying_t<T>>(val));
}
#endif
// Only map owning types because mapping views can be unsafe. // Only map owning types because mapping views can be unsafe.
template <typename T, typename U = format_as_t<T>, template <typename T, typename U = format_as_t<T>,
FMT_ENABLE_IF(std::is_arithmetic<U>::value)> FMT_ENABLE_IF(std::is_arithmetic<U>::value)>