diff --git a/imperative/python/src/pyext17.h b/imperative/python/src/pyext17.h index 41512e163b6c35f175ed6a969b10a212c7573898..ee508dcab367e5ed625f761c21f8ac3f83b7987b 100644 --- a/imperative/python/src/pyext17.h +++ b/imperative/python/src/pyext17.h @@ -62,7 +62,7 @@ public: PyObject_HEAD std::aligned_storage_t storage; #ifdef _Py_TPFLAGS_HAVE_VECTORCALL - PyObject* vectorcall_slot; + PyObject* (*vectorcall_slot)(PyObject*, PyObject*const*, size_t, PyObject*); #endif inline T* inst() { @@ -167,7 +167,7 @@ private: struct tp_vectorcall { static constexpr bool valid = HAS_MEMBER(T, tp_vectorcall); static constexpr bool haskw = [](){if constexpr (valid) - if constexpr (std::is_invocable_v) + if constexpr (std::is_invocable_v) return true; return false;}();