mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-04 17:40:35 +00:00
Clarify that calling non-const format is deprecated
This commit is contained in:
parent
ffa5b14fe3
commit
06f1c0d725
@ -1318,6 +1318,7 @@ template <typename Context> class value {
|
||||
parse_ctx.advance_to(f.parse(parse_ctx));
|
||||
using qualified_type =
|
||||
conditional_t<has_const_formatter<T, Context>(), const T, T>;
|
||||
// Calling format through a mutable reference is deprecated.
|
||||
ctx.advance_to(f.format(*static_cast<qualified_type*>(arg), ctx));
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user