diff --git a/src/fmt/compile.h b/src/fmt/compile.h index a1fb7d2935..af76507f07 100644 --- a/src/fmt/compile.h +++ b/src/fmt/compile.h @@ -61,7 +61,8 @@ const T& first(const T& value, const Tail&...) { return value; } -#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction) && (FMT_CPLUSPLUS >= 201703L) && !FMT_ICC_VERSION +// LAMMPS customization: only use 'if constexpr' with C++17 +#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction) && (FMT_CPLUSPLUS >= 201703L) template struct type_list {}; // Returns a reference to the argument at index N from [first, rest...].