Dear David,
Sorry for this much late reply! I was too busy to answer any email, but had kept your message so that I could answer it ASAP. The reason I did this at all was that I found the topic attractive.
The point is that your code is, according to the Standard, ILLEGAL! I'm saying this as per the item 3 in Chapter 5 of the Standard (page 63 of the copy I've got). The second statement at this paragraph says: "Operator overloading shall not modify the rules for the Built-in operators, that is, for operators applied to types for which they are defined by this standard."
I hope it now to be clear enough what you'r trying to do is illegal, as you'r changing the semantics of the operator == for the char* type, which is defined by the ISO/IEC 14882.
All of the Best,
--Hossein
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
|