mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 21:31:20 +00:00
Disble deprecated implicit enum conversions
This commit is contained in:
parent
9121f9b1d3
commit
9ce6480676
@ -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)>
|
||||
|
Loading…
Reference in New Issue
Block a user