Update docs

This commit is contained in:
Victor Zverovich 2022-02-04 15:42:22 -08:00
parent f055ebbd25
commit a5a7e3a261

View File

@ -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));
// s == "The date is 2012-12-9"