Skip to content

Commit

Permalink
Turn off error-producing NVCC workaround when using c++20 (#3544)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeedm authored Jul 21, 2023
1 parent ac0ab8e commit dbabb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbabb30

Please sign in to comment.