• 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
Re: Ambiguous conversions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ambiguous conversions


  • Subject: Re: Ambiguous conversions
  • From: "Mark Wagner" <email@hidden>
  • Date: Fri, 23 Jun 2006 11:31:37 -0700

On 6/23/06, Bill Lowrey <email@hidden> wrote:
This is a guess, but it might be that you have defined the parameter for the
operator[] to be a long, not an int. To test this assumption, try the
following change:

int main(void)
{
        long idx = 2L;
        MString str("test", 5);
        return str[ idx ];         // <-- Error occurs here
}

If that works, you might try changing the index parameter to an int, unless
you really need it to be a long, which I would question...

Thanks. That seems to have fixed it.

--
Mark Wagner
_______________________________________________
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


References: 
 >Re: Ambiguous conversions (From: "Mark Wagner" <email@hidden>)
 >RE: Ambiguous conversions (From: "Bill Lowrey" <email@hidden>)

  • Prev by Date: Re: Ambiguous conversions
  • Next by Date: Re: Ambiguous conversions
  • Previous by thread: RE: Ambiguous conversions
  • Next by thread: Re: Ambiguous conversions
  • Index(es):
    • Date
    • Thread