17struct fmt::formatter<E, Char, std::enable_if_t<std::is_enum<E>::value>> : fmt::formatter<typename std::underlying_type<E>::type> {
18 using underlying_type =
typename std::underlying_type<E>::type;
19 using parent =
typename fmt::formatter<underlying_type>;
21 constexpr fmt::format_parse_context::iterator parse(fmt::format_parse_context &ctx)
23 return parent::parse(ctx);
26 fmt::format_context::iterator format(
const E &e, format_context &ctx)
const
28 return parent::format(underlying_type(e), ctx);
33struct fmt::formatter<T, Char, std::enable_if_t<std::is_base_of<StrongTypedefBase, T>::value>> : fmt::formatter<typename T::BaseType> {
34 using underlying_type =
typename T::BaseType;
35 using parent =
typename fmt::formatter<underlying_type>;
37 constexpr fmt::format_parse_context::iterator parse(fmt::format_parse_context &ctx)
39 return parent::parse(ctx);
42 fmt::format_context::iterator format(
const T &t, format_context &ctx)
const
44 return parent::format(t.base(), ctx);