We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24dde31 commit 276ee5fCopy full SHA for 276ee5f
include/spdlog/common.h
@@ -365,10 +365,17 @@ SPDLOG_CONSTEXPR_FUNC spdlog::wstring_view_t to_string_view(spdlog::wstring_view
365
#endif
366
367
#ifndef SPDLOG_USE_STD_FORMAT
368
+#if FMT_VERSION >= 110100
369
+template <typename T, typename... Args>
370
+inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_arg<T> fmt) {
371
+ return fmt;
372
+}
373
+#else
374
template <typename T, typename... Args>
375
inline fmt::basic_string_view<T> to_string_view(fmt::basic_format_string<T, Args...> fmt) {
376
return fmt;
377
}
378
+#endif
379
#elif __cpp_lib_format >= 202207L
380
381
SPDLOG_CONSTEXPR_FUNC std::basic_string_view<T> to_string_view(
0 commit comments