Original Post
Im creating my own string class, i have searched and it seems what i want to do is not possible, but just in case i thought id ask anyway
I can do this
STRING String1=Value;
(where value is an int)
I want to be able to use the following expression on my string class
int Value = String1;
where String1 is of class string. But because i also have an operator for (two STRING classes) it cannot pick between them (only return type differs)
STRING String1 = String2;
Is there any way to overload the = operator to take into account the return type?
And whilst im posting, is there anyway to define a brand new operator symbol?
(e.g STRING String1 $ String2) where $ is not currently a valid operator.
Does any of this even make sence?
[edited by - empirical on March 21, 2004 11:51:11 AM]