mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-06 15:55:00 +00:00
Turn off error-producing NVCC workaround when using c++20 (#3544)
This commit is contained in:
parent
ac0ab8eff3
commit
dbabb305c3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user