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

This commit is contained in:
Walter Gray
2020-12-24 06:40:46 -08:00
committed by GitHub
parent aa89e380d9
commit 4fa4c9248f
7 changed files with 145 additions and 60 deletions
+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>