Remove broken fmt::internal::format_enum (#818)

This commit is contained in:
Victor Zverovich
2018-08-01 07:11:53 -07:00
parent 0c63d15ee9
commit c68bab7014
3 changed files with 4 additions and 19 deletions

View File

@@ -2322,10 +2322,6 @@ template <typename Context, typename T>
struct format_type :
std::integral_constant<bool, get_type<Context, T>::value != custom_type> {};
// Specifies whether to format enums.
template <typename T, typename Enable = void>
struct format_enum : std::integral_constant<bool, std::is_enum<T>::value> {};
template <template <typename> class Handler, typename Spec, typename Context>
void handle_dynamic_spec(
Spec &value, arg_ref<typename Context::char_type> ref, Context &ctx) {
@@ -3259,16 +3255,6 @@ struct formatter<
internal::dynamic_format_specs<Char> specs_;
};
template <typename T, typename Char>
struct formatter<T, Char,
typename std::enable_if<internal::format_enum<T>::value>::type>
: public formatter<int, Char> {
template <typename ParseContext>
auto parse(ParseContext &ctx) -> decltype(ctx.begin()) {
return ctx.begin();
}
};
// A formatter for types known only at run time such as variant alternatives.
//
// Usage: