Turn off error-producing NVCC workaround when using c++20

This commit is contained in:
Dmitry Alexeev 2023-07-21 10:53:32 -07:00
parent ac0ab8eff3
commit 00073271e4

View File

@ -92,7 +92,7 @@
#ifndef FMT_USE_CONSTEXPR #ifndef FMT_USE_CONSTEXPR
# if (FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VERSION >= 1912 || \ # if (FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VERSION >= 1912 || \
(FMT_GCC_VERSION >= 600 && FMT_CPLUSPLUS >= 201402L)) && \ (FMT_GCC_VERSION >= 600 && FMT_CPLUSPLUS >= 201402L)) && \
!FMT_ICC_VERSION && !defined(__NVCC__) !FMT_ICC_VERSION && (!defined(__NVCC__) || FMT_CPLUSPLUS >= 202002L)
# define FMT_USE_CONSTEXPR 1 # define FMT_USE_CONSTEXPR 1
# else # else
# define FMT_USE_CONSTEXPR 0 # define FMT_USE_CONSTEXPR 0