Ambiguous Conversion error
Ambiguous Conversion error
- Subject: Ambiguous Conversion error
- From: "Michael Birac" <email@hidden>
- Date: Sun, 25 Jun 2006 16:24:43 -0400
I am trying to compile (in Xcode 2.3) a PowerPlant based Carbon
project (originally imported into Xcode 1 from CW), and
receive the following "ambiguous conversion" error:
ISO C++ says that there is an ambiguous conversion, even though the
worst
conversion for the first is better than the worst conversion for the
second.
I did not receive this error in neither Xcode 1 nor CW; it compiled
and ran successfully. What is "the first" and "the second"?
The ambiguous code is:
if ( theName == "\p#" )
The variable "theName" is defined as:
LStr255 theName = theModel->GetName();
The function "GetName" is prototyped as:
inline virtual LStr255 GetName()
{
return mName;
}
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;
}
I have just upgraded to 10.4.6 from 10.3.9(?) and from xCode 1.? to
xCode 2.3. I am using an iBook G3 500 MHz with 640 MB.
Thank you very much.
_______________________________________________
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