diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 02b3b7cca..7b816d383 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -758,19 +758,19 @@ public: template class_ &def(const detail::op_ &op, const Extra&... extra) { - op.template execute(*this, is_method(*this), extra...); + op.template execute(*this, extra...); return *this; } template class_ & def_cast(const detail::op_ &op, const Extra&... extra) { - op.template execute_cast(*this, is_method(*this), extra...); + op.template execute_cast(*this, extra...); return *this; } template class_ &def(const detail::init &init, const Extra&... extra) { - init.template execute(*this, is_method(*this), extra...); + init.template execute(*this, extra...); return *this; }