Add tests for FMT_ENFORCE_COMPILE_STRING, fix several errors (#2038)

This commit is contained in:
Walter Gray authored and GitHub committed 2020-12-24 06:40:46 -08:00
1 parent aa89e380d9
commit 4fa4c9248f
7 files changed
+145 -60

No files matched your search

+1 -1
View File
@@ -3829,7 +3829,7 @@ inline std::string to_string(T value) {
Converts *value* to ``std::wstring`` using the default format for type *T*.
*/
template <typename T> inline std::wstring to_wstring(const T& value) {
return format(L"{}", value);
return format(FMT_STRING(L"{}"), value);
}
template <typename Char, size_t SIZE>