• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Ambiguous Conversion error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Ambiguous Conversion error
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: can I catch an EXC_BAD_ACCESS?
  • Next by Date: Re: How to display Japanese in debug console?
  • Previous by thread: Re: XCode 2.3 internal error upon opening project
  • Next by thread: Re: Ambiguous Conversion error
  • Index(es):
    • Date
    • Thread