From 77258f6069ebe3371d61dd76ea9fa4834944e7e0 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Tue, 27 Apr 2021 01:48:27 +0300 Subject: [PATCH] fix FMT_CONSTEXPR_CHAR_TRAITS check for MSVC --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 3a85e2cd..f22d1f26 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -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