Document format string compilation

This commit is contained in:
Victor Zverovich
2020-06-25 06:57:23 -07:00
parent d0f90b5be7
commit d130ee070f
3 changed files with 28 additions and 1 deletions

View File

@@ -2840,7 +2840,7 @@ FMT_CONSTEXPR basic_string_view<Char> compile_string_to_view(
**Example**::
// A compile-time error because 'd' is an invalid specifier for strings.
std::string s = format(FMT_STRING("{:d}"), "foo");
std::string s = fmt::format(FMT_STRING("{:d}"), "foo");
\endrst
*/
#define FMT_STRING(s) FMT_STRING_IMPL(s, fmt::compile_string)