Improve docs

This commit is contained in:
Walter Gray 2020-11-30 14:45:57 -08:00
parent e805e8ee29
commit 1fbfcccb1b

View File

@ -165,6 +165,14 @@ functions in their ``formatter`` specializations.
.. _udt:
Enforcing Compile-time Format Checks
------------------------------------
To force the use of Compile-time checks, compile with
``FMT_ENFORCE_COMPILE_STRING`` defined. When this preprocessor definition is
given, functions accepting ``FMT_STRING`` will fail to compile with regular
strings. When this is set, runtime-checked formatting is still possible using
``fmt::vformat``, ``fmt::vprint``, etc.
Formatting User-defined Types
-----------------------------