Disble deprecated implicit enum conversions

This commit is contained in:
Victor Zverovich 2023-01-03 10:24:31 -08:00
parent 9121f9b1d3
commit 9ce6480676

View File

@ -1486,6 +1486,7 @@ 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 &&
@ -1496,6 +1497,7 @@ template <typename Context> struct arg_mapper {
static_cast<underlying_t<T>>(val))) {
return map(static_cast<underlying_t<T>>(val));
}
#endif
template <typename T, FMT_ENABLE_IF(has_format_as<T>::value &&
!has_formatter<T, Context>::value)>