[C++-sig] boost python references

david stummer stummer at gmail.com
Sun Apr 16 13:07:55 CEST 2006


ok, i added a member function to Window which takes a Seat reference:

    void Window::AddSeat(Seat &s)
    {
        seat=s;
    }

    class_<Window>("Window")
        .def("FindWindow", make_function(&Window::AddSeat))
        .def_readwrite("seat", &Window::seat)
    ;

using make_function like you said, although this doesn't seem to have any
effect.

I thank you for your patience - i am a newbie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20060416/b7cdef39/attachment.htm>


More information about the Cplusplus-sig mailing list