From fd53472238f2b227e9dfcfc8a9337637f16d65e3 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 7 Jul 2019 17:22:58 +0300 Subject: [PATCH] Cleaned common.h --- include/spdlog/common.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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