Update docs

This commit is contained in:
Victor Zverovich 2022-07-04 08:18:44 -07:00
parent 2ac51fc448
commit 1010b7f148

View File

@ -308,10 +308,10 @@ If a type provides both a ``formatter`` specialization and an implicit
conversion to a formattable type, the specialization takes precedence over the conversion to a formattable type, the specialization takes precedence over the
conversion. conversion.
For scoped enums (enum classes) {fmt} also provides the ``format_as`` extension For enums {fmt} also provides the ``format_as`` extension API. To format an enum
API. To format an enum via this API define ``format_as`` that takes this enum via this API define ``format_as`` that takes this enum and converts it to the
and converts it to the underlying type. ``format_as`` should be defined in the underlying type. ``format_as`` should be defined in the same namespace as the
same namespace as the enum. enum.
Example (https://godbolt.org/z/r7vvGE1v7):: Example (https://godbolt.org/z/r7vvGE1v7)::