Skip to content

Commit

Permalink
Clarify precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jul 12, 2020
1 parent 16cac46 commit bd903f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ You can also write a formatter for a hierarchy of classes::
fmt::print("{}", a); // prints "B"
}

If a type provides both a ``formatter`` specialization and an implicit
conversion to a formattable type, the specialization takes precedence over the
conversion.

.. doxygenclass:: fmt::basic_format_parse_context
:members:

Expand Down

0 comments on commit bd903f9

Please sign in to comment.