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)); } };