From 96a8f6250cbf4e8c76387c614f666710a2fa9bad Mon Sep 17 00:00:00 2001 From: jdrouhard Date: Thu, 9 Jan 2025 16:58:46 -0600 Subject: [PATCH] fix: remove unused to_string_view overload in fmt >= 11.1 (#3314) --- include/spdlog/common.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 2d73f830..71ffd240 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -364,19 +364,7 @@ SPDLOG_CONSTEXPR_FUNC spdlog::wstring_view_t to_string_view(spdlog::wstring_view } #endif -#ifndef SPDLOG_USE_STD_FORMAT -#if FMT_VERSION >= 110100 -template -inline fmt::basic_string_view to_string_view(fmt::basic_format_arg fmt) { - return fmt; -} -#else -template -inline fmt::basic_string_view to_string_view(fmt::basic_format_string fmt) { - return fmt; -} -#endif -#elif __cpp_lib_format >= 202207L +#if defined(SPDLOG_USE_STD_FORMAT) && __cpp_lib_format >= 202207L template SPDLOG_CONSTEXPR_FUNC std::basic_string_view to_string_view( std::basic_format_string fmt) SPDLOG_NOEXCEPT {