File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -364,19 +364,7 @@ SPDLOG_CONSTEXPR_FUNC spdlog::wstring_view_t to_string_view(spdlog::wstring_view
364364}
365365#endif
366366
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
367+ #if defined(SPDLOG_USE_STD_FORMAT) && __cpp_lib_format >= 202207L
380368template <typename T, typename ... Args>
381369SPDLOG_CONSTEXPR_FUNC std::basic_string_view<T> to_string_view (
382370 std::basic_format_string<T, Args...> fmt) SPDLOG_NOEXCEPT {
You can’t perform that action at this time.
0 commit comments