[C++-sig] Support for member operators?
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Sat Mar 1 21:13:53 CET 2003
--- Nicodemus <nicodemus at globalite.com.br> wrote:
> const C operator+(int o)
> ...
>
> If I try to expose the operator+ like this:
>
> .def( self + other<int>() )
>
> I get a compiler error: "no operator "+" matches these operands"
What happens if you change the member function signature to
C operator+(int o) const
> Does Boost.Python support member operators?
I am pretty sure it does, but your placement of "const" seems very unusual.
Ralf
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
More information about the Cplusplus-sig
mailing list