Files
libconfig/build-config/reflect-cpp/include/rfl/thirdparty/enchantum/fmt_format.hpp

14 lines
368 B
C++
Raw Normal View History

#pragma once
#include "details/format_util.hpp"
#include "enchantum.hpp"
#include <fmt/format.h>
template<enchantum::Enum E>
struct fmt::formatter<E> : fmt::formatter<string_view> {
template<typename FmtContext>
constexpr auto format(const E e, FmtContext& ctx) const
{
return fmt::formatter<string_view>::format(enchantum::details::format(e), ctx);
}
};