This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
reg operator overloading
- From: "Anand A" <mailanand at lycos dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 07 Apr 2002 19:56:33 +0530
- Subject: reg operator overloading
- Organization: Lycos Mail (http://mail.lycos.com:80)
- Reply-to: mailanand at lycos dot com
Hello All!
I have a doubt in C++:
Why special rules apply to overloading the operators =, (), [] that
they must be class members, not friends?
Please clarify.
Thanks & Regards
Anand
---
"There are two ways to live your life.
One is as though nothing is a miracle.
The other is as though everything is a miracle."
- by Albert Einstein(1879 - 1955)
See Dave Matthews Band live or win a signed guitar
http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp