Skip to content

Commit

Permalink
test workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
alexezeder committed Dec 24, 2020
1 parent 0446614 commit a3b1c07
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2112,11 +2112,10 @@ FMT_CONSTEXPR OutputIt write(OutputIt out, T value) {
}

template <
typename Char, typename OutputIt, typename T,
FMT_ENABLE_IF(
std::is_enum<T>::value && !std::is_same<T, Char>::value &&
mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value !=
type::custom_type)>
typename Char, typename OutputIt, typename T, bool B = std::is_enum<T>::value && !std::is_same<T, Char>::value &&
mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value !=
type::custom_type,
FMT_ENABLE_IF(B)>
FMT_CONSTEXPR OutputIt write(OutputIt out, T value) {
return write<Char>(
out, static_cast<typename std::underlying_type<T>::type>(value));
Expand Down

0 comments on commit a3b1c07

Please sign in to comment.