Make error_code formatter debug-enabled

This commit is contained in:
Victor Zverovich
2025-10-19 10:35:45 -07:00
parent a2289b8593
commit 08d38d6e78
2 changed files with 7 additions and 0 deletions

View File

@@ -513,6 +513,8 @@ template <> struct formatter<std::error_code> {
bool debug_ = false;
public:
FMT_CONSTEXPR void set_debug_format(bool set = true) { debug_ = set; }
FMT_CONSTEXPR auto parse(parse_context<>& ctx) -> const char* {
auto it = ctx.begin(), end = ctx.end();
if (it == end) return it;