fix FMT_CONSTEXPR_CHAR_TRAITS check for MSVC

This commit is contained in:
Alexey Ochapov 2021-04-27 01:48:27 +03:00 committed by Victor Zverovich
parent d23e315ea2
commit 77258f6069

View File

@ -48,7 +48,7 @@
// MSVC, libc++: always if __cplusplus >= 201703L
// NOTE: FMT_GCC_VERSION - is not libstdc++ version.
// _GLIBCXX_RELEASE - is present in GCC 7 libstdc++ and newer.
#if __cplusplus >= 201703L
#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
# ifndef __GLIBCXX__
# define FMT_CONSTEXPR_CHAR_TRAITS constexpr
# elif defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE >= 7