diff --git a/doc/api.rst b/doc/api.rst index 989adb92..b65a8fc6 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -153,6 +153,8 @@ Utilities .. doxygenfunction:: fmt::to_string(const T&) +.. doxygenfunction:: fmt::to_wstring(const T&) + .. doxygenclass:: fmt::basic_memory_buffer :protected-members: :members: diff --git a/include/fmt/format.h b/include/fmt/format.h index a513c4ab..07c644aa 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3390,6 +3390,11 @@ std::string to_string(const T &value) { return str; } +/** + \rst + Converts *value* to ``std::wstring`` using the default format for type *T*. + \endrst + */ template std::wstring to_wstring(const T &value) { std::wstring str;