From e4e0ae39182dd6f360738c7076c03b9f80ff34a9 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 15 Sep 2022 20:41:32 -0700 Subject: [PATCH] Use fmt/core.h in examples --- doc/api.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/api.rst b/doc/api.rst index 4b15385a..1e96e6a6 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -236,6 +236,8 @@ Then you can pass objects of type ``point`` to any formatting function:: You can also reuse existing formatters via inheritance or composition, for example:: + #include + enum class color {red, green, blue}; template <> struct fmt::formatter: formatter { @@ -264,7 +266,7 @@ will return ``" blue"``. You can also write a formatter for a hierarchy of classes:: #include - #include + #include struct A { virtual ~A() {}