Added wstring_view_t

This commit is contained in:
Matthias Moulin 2019-07-06 18:59:45 +02:00 committed by GitHub
parent ee87aee4dd
commit be33f5eb89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,6 +94,13 @@ template<typename T>
using basic_string_view_t = fmt::basic_string_view<T>; using basic_string_view_t = fmt::basic_string_view<T>;
#endif #endif
using string_view_t = basic_string_view_t<char>; using string_view_t = basic_string_view_t<char>;
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
#ifndef _WIN32
#error SPDLOG_WCHAR_TO_UTF8_SUPPORT only supported on windows
#else
using wstring_view_t = basic_string_view_t<wchar_t>;
#endif // _WIN32
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
#if defined(SPDLOG_NO_ATOMIC_LEVELS) #if defined(SPDLOG_NO_ATOMIC_LEVELS)
using level_t = details::null_atomic_int; using level_t = details::null_atomic_int;