Re: Ambiguous Conversion error
Re: Ambiguous Conversion error
- Subject: Re: Ambiguous Conversion error
- From: Fritz Anderson <email@hidden>
- Date: Mon, 26 Jun 2006 15:31:14 -0500
On 25 Jun 2006, at 3:24 PM, Michael Birac wrote: The ambiguous code is:
if ( theName == "\p#" )
... And I think the relevant prototype (of many in LString.h) for operator '==' is:
inline Boolean operator == ( ConstStringPtr inLhs, const LString& inRhs) { return inRhs.CompareTo(inLhs) == 0; }
What happens when you put the constant string to the left of the ==, and the LString to the right, as specified in the definition of == for LString?
-- F
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden