A bug was discovered in glaze which prevented valid toml output. We have switched to toml++ and reflect-cpp. The interface has remained the same so this should not break any code
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);
|
|
}
|
|
}; |