• 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: Perplexed about "call of overloaded 'xxx' is ambiguous"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Perplexed about "call of overloaded 'xxx' is ambiguous" (From: Matt Gough <email@hidden>)
 >Re: Perplexed about "call of overloaded 'xxx' is ambiguous" (From: Tommy Nordgren <email@hidden>)
 >Re: Perplexed about "call of overloaded 'xxx' is ambiguous" (From: email@hidden)

  • Prev by Date: Re: Perplexed about "call of overloaded 'xxx' is ambiguous"
  • Next by Date: Re: trying to control the output of a subprocess.
  • Previous by thread: Re: Perplexed about "call of overloaded 'xxx' is ambiguous"
  • Next by thread: Tree View windows does not populate at all in MacOS X 10.4.x
  • Index(es):
    • Date
    • Thread