mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 18:56:19 +08:00
14 lines
368 B
C++
14 lines
368 B
C++
#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);
|
|
}
|
|
}; |