diff --git a/imperative/python/src/pyext17.h b/imperative/python/src/pyext17.h index 41512e16..ee508dca 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;}();