forked from fmtlib/fmt
Clarify that unused args are allowed
This commit is contained in:
@ -71,10 +71,12 @@ checked at compile time in C++20. To pass a runtime format string wrap it in
|
|||||||
Compile-Time Format String Checks
|
Compile-Time Format String Checks
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
|
||||||
Compile-time checks are enabled by default on compilers that support C++20
|
Compile-time format string checks are enabled by default on compilers
|
||||||
``consteval``. On older compilers you can use the
|
that support C++20 ``consteval``. On older compilers you can use the
|
||||||
:ref:`FMT_STRING <legacy-checks>`: macro defined in ``fmt/format.h`` instead.
|
:ref:`FMT_STRING <legacy-checks>`: macro defined in ``fmt/format.h`` instead.
|
||||||
|
|
||||||
|
Unused arguments are allowed as in Python's `str.format` and ordinary functions.
|
||||||
|
|
||||||
.. doxygenclass:: fmt::basic_format_string
|
.. doxygenclass:: fmt::basic_format_string
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user