From 62127a27b0e781b6169330c1f1fae1f9aaee275c Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 13 Dec 2015 13:09:42 +0100 Subject: [PATCH] don't allow 'void' or 'void*' as a function argument --- include/pybind11/cast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 0c7da1ab..145bc2b3 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -300,7 +300,7 @@ protected: template <> class type_caster { 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;