Mail Archives: djgpp/1997/08/14/08:48:16
At 07:53 12/08/97 GMT, Paul Derbyshire wrote:
>
>
>What exactly is the list of operators you can overload? As in, what
>combinations of nonalphabetic symbols can be used as operators? It'd be
>nice to have a full list. My C++ documentations don't specify, they say
>how to overload operators, and so forth, but don't list the symbols or
>symbol pairs that can be used legitimately as operators, as in, what is
>allowed in place of ?? in:
>
>friend vector &operator?? (vector &a, vector &b);
Grab a copy of "The C++ Programming Language", 2nd Ed. by Bjarne Stroustrup
and read the chpater seven of it. Has all you want to know about overloading.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br
DME/ASC Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996
Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -