This commit is contained in:
Axel Kohlmeyer
2023-11-18 06:22:25 -05:00
parent c66710934d
commit baa00d22e9

View File

@ -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 <typename... Args> struct type_list {};
// Returns a reference to the argument at index N from [first, rest...].