From 06f1c0d725855861535e9e65cd4d502aca7c61ed Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 24 Nov 2023 10:21:57 -0800 Subject: [PATCH] Clarify that calling non-const format is deprecated --- include/fmt/core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fmt/core.h b/include/fmt/core.h index aaeb2cfa..ba982964 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1318,6 +1318,7 @@ template class value { parse_ctx.advance_to(f.parse(parse_ctx)); using qualified_type = conditional_t(), const T, T>; + // Calling format through a mutable reference is deprecated. ctx.advance_to(f.format(*static_cast(arg), ctx)); } };