Clarify why byte formatter is in core

This commit is contained in:
Victor Zverovich 2023-05-13 08:04:53 -07:00
parent aeedac5884
commit d6846f4ac8

View File

@ -291,6 +291,7 @@ struct monostate {
# define FMT_ENABLE_IF(...) fmt::enable_if_t<(__VA_ARGS__), int> = 0 # define FMT_ENABLE_IF(...) fmt::enable_if_t<(__VA_ARGS__), int> = 0
#endif #endif
// This is defined in core.h instead of format.h to avoid injecting in std.
#ifdef __cpp_lib_byte #ifdef __cpp_lib_byte
inline auto format_as(std::byte b) -> unsigned char { inline auto format_as(std::byte b) -> unsigned char {
return static_cast<unsigned char>(b); return static_cast<unsigned char>(b);