[C++-sig] def_visitor

David Abrahams dave at boost-consulting.com
Mon Aug 11 18:37:23 CEST 2003

I have just checked in changes which cause all class_<...>::def
invocations which aren't applied to [member] function pointers to go
through a new def_visitor<...> interface.  Examples are:


        .def("foo", some_callable_python_object)

        .def(self + int)


This gives us a simple non-intrusive way to add new def()
functionality and lays the groundwork for pure_virtual() and the new
init function generator.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list