From bd903f96ac93cccca39e0921c046c02258a3198c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 12 Jul 2020 09:02:31 -0700 Subject: [PATCH] Clarify precedence --- doc/api.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api.rst b/doc/api.rst index ca016895..47bb42c3 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -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: