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

This commit is contained in:
Wenzel Jakob 2015-12-13 13:09:42 +01:00
parent 5f15121b0c
commit 62127a27b0

View File

@ -300,7 +300,7 @@ protected:
template <> class type_caster<void_type> {
public:
bool load(PyObject *, bool) { return true; }
bool load(PyObject *, bool) { return false; }
static PyObject *cast(void_type, return_value_policy /* policy */, PyObject * /* parent */) {
Py_INCREF(Py_None);
return Py_None;