Commit a5a7e3a2 authored by Victor Zverovich's avatar Victor Zverovich

Update docs

parent f055ebbd
...@@ -507,6 +507,8 @@ user-defined types that have an overloaded insertion operator (``operator<<``):: ...@@ -507,6 +507,8 @@ user-defined types that have an overloaded insertion operator (``operator<<``)::
} }
}; };
template <> struct fmt::formatter<date> : ostream_formatter<date> {};
std::string s = fmt::format("The date is {}", date(2012, 12, 9)); std::string s = fmt::format("The date is {}", date(2012, 12, 9));
// s == "The date is 2012-12-9" // s == "The date is 2012-12-9"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment