diff --git a/include/spdlog/common.h b/include/spdlog/common.h index f0a5736b..d8d2aaac 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -85,15 +85,11 @@ using sink_ptr = std::shared_ptr; using sinks_init_list = std::initializer_list; using err_handler = std::function; -// string_view type - either std::string_view or fmt::string_view (pre c++17) -#if defined(FMT_USE_STD_STRING_VIEW) -template -using basic_string_view_t = std::basic_string_view; -#else template using basic_string_view_t = fmt::basic_string_view; -#endif + using string_view_t = basic_string_view_t; + #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT #ifndef _WIN32 #error SPDLOG_WCHAR_TO_UTF8_SUPPORT only supported on windows