CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: overloaded operator friends
Any decent book about C++ should be able to tell you this (not the builder
manuals, since they assume you already know the language)
The quote below is from C++ Primer by Stanley B. Lippman, an excellent book
in my opinion.
"The assignment ("="), subscript("[ ]"), call("( )"), and member selection
("->"), operators are required by the language to be defined as class member
functions. A global instance of these, including a global template function
instance, is flagged at compile time as an error."
Hope that clears up the confusion.
Anders Kofoed
Cyber Com Consulting Group
W Komornicki's Home Page |
Main Index |
Thread Index