[C++-sig] Pyplusplus: operators <</>> not supported?
Hans Meine
meine at informatik.uni-hamburg.de
Wed Jun 4 13:23:35 CEST 2008
Am Mittwoch, 04. Juni 2008 12:31:08 schrieb Roman Yakovenko:
> No, I meant C++ :-)
>
> I found some definitions in MSDN for shift operators, but I didn't see
> how I can redefine them for class.
> Py++ has to distinct between shift and stream operators.
There is no technical distinction. Operators are like normal functions, i.e.
you may decide yourself which argument and return types they have, and you
may overload them. STL stream operators simply "abuse" the shift operator
syntax for their purpose.
HTH, / /
/--/
/ / ANS
More information about the Cplusplus-sig
mailing list