This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

reg operator overloading


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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]