Re: Ambiguous conversions
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