Commit 62127a27 by Wenzel Jakob

don't allow 'void' or 'void*' as a function argument

parent 5f15121b
...@@ -300,7 +300,7 @@ protected: ...@@ -300,7 +300,7 @@ protected:
template <> class type_caster<void_type> { template <> class type_caster<void_type> {
public: public:
bool load(PyObject *, bool) { return true; } bool load(PyObject *, bool) { return false; }
static PyObject *cast(void_type, return_value_policy /* policy */, PyObject * /* parent */) { static PyObject *cast(void_type, return_value_policy /* policy */, PyObject * /* parent */) {
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment