Clarify that unused args are allowed

This commit is contained in:
Victor Zverovich 2022-12-28 06:58:04 -08:00
parent 7ad48c1f65
commit 9e60304869

View File

@ -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 checks are enabled by default on compilers that support C++20
``consteval``. On older compilers you can use the
Compile-time format string checks are enabled by default on compilers
that support C++20 ``consteval``. On older compilers you can use the
: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
:members: