Skip to content

Commit

Permalink
Remove a deprecated option
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Mar 19, 2023
1 parent 6549ffd commit 6002ddf
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1483,18 +1483,6 @@ template <typename Context> struct arg_mapper {
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.
template <typename T, typename U = format_as_t<T>,
FMT_ENABLE_IF(std::is_arithmetic<U>::value)>
Expand Down

0 comments on commit 6002ddf

Please sign in to comment.