[C++-sig] [boost.python] How can I wrap operator==?
blp330
blp330 at msn.com
Mon Jan 11 05:05:05 CET 2010
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.
More information about the Cplusplus-sig
mailing list