From 00073271e4cefe7524bc44cec8c36627eb80a1ff Mon Sep 17 00:00:00 2001 From: Dmitry Alexeev Date: Fri, 21 Jul 2023 10:53:32 -0700 Subject: [PATCH] Turn off error-producing NVCC workaround when using c++20 --- 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 37336751..da96b68d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -92,7 +92,7 @@ #ifndef FMT_USE_CONSTEXPR # if (FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_MSC_VERSION >= 1912 || \ (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 # else # define FMT_USE_CONSTEXPR 0