Skip to content

Commit

Permalink
Clarify that unused args are allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 28, 2022
1 parent 7ad48c1 commit 9e60304
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 9e60304

Please sign in to comment.