FixedEnum -> StrongEnum and make it a regression test

This commit is contained in:
Victor Zverovich
2019-08-31 06:34:32 -07:00
parent 200ee6f108
commit c76957565c
2 changed files with 6 additions and 3 deletions

View File

@@ -825,7 +825,8 @@ template <typename Context> struct arg_mapper {
FMT_ENABLE_IF(std::is_enum<T>::value &&
!has_formatter<T, Context>::value &&
!has_fallback_formatter<T, Context>::value)>
FMT_CONSTEXPR auto map(const T& val) -> decltype(map(static_cast<typename std::underlying_type<T>::type>(val))) {
FMT_CONSTEXPR auto map(const T& val) -> decltype(
map(static_cast<typename std::underlying_type<T>::type>(val))) {
return map(static_cast<typename std::underlying_type<T>::type>(val));
}
template <typename T,