From dbbd711f4635838290a10b1b3d8d378937a8741b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 5 Jan 2022 09:41:35 -0800 Subject: [PATCH] Suppress a warning --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 8b789574..aaf22e94 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -520,7 +520,7 @@ FMT_CONSTEXPR inline auto utf8_decode(const char* s, uint32_t* c, int* e) return next; } -enum { invalid_code_point = ~uint32_t() }; +constexpr uint32_t invalid_code_point = ~uint32_t(); // Invokes f(cp, sv) for every code point cp in s with sv being the string view // corresponding to the code point. cp is invalid_code_point on error.