Re: Perplexed about "call of overloaded 'xxx' is ambiguous"
Re: Perplexed about "call of overloaded 'xxx' is ambiguous"
- Subject: Re: Perplexed about "call of overloaded 'xxx' is ambiguous"
- From: Thomas Engelmeier <email@hidden>
- Date: Fri, 5 Sep 2008 09:58:09 +0200
Am 05.09.2008 um 09:33 schrieb email@hidden:
Unfortunately that was a bit of a red herring, when I created the
email, I did a find and replace of the real namespace 'AppleCore' to
'MyNamespace'. I must have missed that last one.
My feeling of the stomach tells me the problem is bound to the
namespaces:
- your string class has a bunch on (non-explicit) constructors and
conversion operators to unnamespaced other data types
- someClass is unnamespaced
- for both assignment and ctor the compiler first tries to find an
appropriate solution in the same namespace.
It finds something like
someClass( UIString( (const char *) testString ) );
I could imagine you problem goes away if you either
- put someClass in the same namespace as UIString
- or make the UIString ctors explicit.
Besides that, my C++ is a little bit rusty now. Too much [] -
madness ;-) For a definitve answer I'd recommend the newsgroup
comp.lang.c++.moderated
HTH,
Tom_E
_______________________________________________
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