Hi,

I want to wrap operator== for my object, Py++ generates that:

        Document_exposer.def( bp::self != bp::self);
        Document_exposer.def( bp::self == bp::self );

But I want to do something more, so I try to wrap it with:

        Document_exposer.def( 
            bp::self != bp::self
            , &Document__NotEqualWrap );
        Document_exposer.def( 
            bp::self == bp::self
            , &Document__EqualWrap );

It can't be compiled...

How can I do?

Thanks.
-- 
View this message in context: 
http://old.nabble.com/-boost.python--How-can-I-wrap-operator%3D%3D--tp27105703p27105703.html
Sent from the Python - c++-sig mailing list archive at Nabble.com.

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to