mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Simplify example
This commit is contained in:
parent
c85efef312
commit
7b478f9dec
@ -1262,8 +1262,8 @@ inline format_arg_store<Context, Args...> make_format_args(
|
|||||||
should only be used as a parameter type in type-erased functions such as
|
should only be used as a parameter type in type-erased functions such as
|
||||||
``vformat``::
|
``vformat``::
|
||||||
|
|
||||||
void vlog(fmt::string_view format_str, fmt::format_args args); // OK
|
void vlog(string_view format_str, format_args args); // OK
|
||||||
fmt::format_args args = fmt::make_format_args(42); // Error: dangling reference
|
format_args args = make_format_args(42); // Error: dangling reference
|
||||||
\endrst
|
\endrst
|
||||||
*/
|
*/
|
||||||
template <typename Context> class basic_format_args {
|
template <typename Context> class basic_format_args {
|
||||||
|
Loading…
Reference in New Issue
Block a user