chore: make #4587 use proper cpp17 feature macro (#4592)

This commit is contained in:
Aaron Gokaslan 2023-03-27 10:59:56 -04:00 committed by GitHub
parent 5bbcba548a
commit 66f12df03b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ constexpr descr<N, Ts...> concat(const descr<N, Ts...> &descr) {
return descr;
}
#if defined(PYBIND11_CPP17)
#ifdef __cpp_fold_expressions
template <size_t N1, size_t N2, typename... Ts1, typename... Ts2>
constexpr descr<N1 + N2 + 2, Ts1..., Ts2...> operator,(const descr<N1, Ts1...> &a,
const descr<N2, Ts2...> &b) {