From 188afe20f9a212852c0079696260a923cec3884c Mon Sep 17 00:00:00 2001
From: gabime <gmelman1@gmail.com>
Date: Sat, 28 Sep 2019 11:20:26 +0300
Subject: [PATCH] Fix issue #1249

---
 include/spdlog/common.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/spdlog/common.h b/include/spdlog/common.h
index 97650d00..13fbe970 100644
--- a/include/spdlog/common.h
+++ b/include/spdlog/common.h
@@ -101,14 +101,13 @@ using sink_ptr = std::shared_ptr<sinks::sink>;
 using sinks_init_list = std::initializer_list<sink_ptr>;
 using err_handler = std::function<void(const std::string &err_msg)>;
 using string_view_t = fmt::basic_string_view<char>;
+using wstring_view_t = fmt::basic_string_view<wchar_t>;
 using memory_buf_t = fmt::basic_memory_buffer<char, 250>;
 
 #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
 #ifndef _WIN32
 #error SPDLOG_WCHAR_TO_UTF8_SUPPORT only supported on windows
 #else
-using wstring_view_t = fmt::basic_string_view<wchar_t>;
-
 template<typename T>
 struct is_convertible_to_wstring_view : std::is_convertible<T, wstring_view_t>
 {};