"Daniel T." <postmaster@earthlink.net> wrote in message
news:postmaster-930859.07520721032006@news.east.earthlink.net[color=blue]
> In article <1142915688.571665.109880@z34g2000cwc.googlegroups .com>,
>
ferdinand.stefanus@gmail.com wrote:
>[color=green]
>> Cat wrote:[color=darkred]
>>> Whoops.. that should probably be:
>>>
>>> myClass& myClass::operator=(std::string& str)[/color]
>>
>> Or better yet,
>>
>> myClass& myClass::operator=(const std::string& str);
>>
>> As I assume the OP does not need to modify str.[/color]
>
> In that vain. Is there a table somewhere on the net that shows the
> standard operator signatures?
>
>
> --
> Magic depends on tradition and belief. It does not welcome
> observation, nor does it profit by experiment. On the other hand,
> science is based on experience; it is open to correction by
> observation and experiment.[/color]
I don't know what you mean by "standard operator signatures", but Vol I of
Bruce Eckel's Thinking in C++ has a chapter showing how to define every
user-definable operator. It is Chapter 12.
http://mindview.net/Books/TICPP/ThinkingInCPP2e.html
--
John Carson