From 665d9779ec4faefe643a0ffefe8d3ee6cde74d55 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Wed, 24 Aug 2022 19:56:45 +0200 Subject: [PATCH] Disable non-type template args for nvhpc (#3053) --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 13a0edf2..87444e03 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -276,7 +276,8 @@ #ifndef FMT_USE_NONTYPE_TEMPLATE_ARGS # if defined(__cpp_nontype_template_args) && \ ((FMT_GCC_VERSION >= 903 && FMT_CPLUSPLUS >= 201709L) || \ - __cpp_nontype_template_args >= 201911L) + __cpp_nontype_template_args >= 201911L) && \ + !defined(__NVCOMPILER) # define FMT_USE_NONTYPE_TEMPLATE_ARGS 1 # else # define FMT_USE_NONTYPE_TEMPLATE_ARGS 0