• 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
Newbie post. AssertMacros.h "check" function collides with C++ inline function defined in my namespace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie post. AssertMacros.h "check" function collides with C++ inline function defined in my namespace


  • Subject: Newbie post. AssertMacros.h "check" function collides with C++ inline function defined in my namespace
  • From: email@hidden
  • Date: Mon, 27 Jul 2009 16:49:36 +0100

Hi Folks,
anyone seen anything like this?

I'm using a C++ header "myheader.h" included in my objective-C source.

myheader.h defines an inline function "check" within a namespace "mynamespace".

Elsewhere in myheader.h, code calls the "check" function.

The problem is that XCode thinks I'm trying to call a function defined
in AssertMacros.h with the same name.

The only way round this that I can see so far is to undefine  the
"check" function in myheader.h.

To me this seems quite strange. I would have thought that the XCode
compiler would expand the inline function. This would render any name
collision immaterial.

Even if it didn't expand the function, because my "check" is defined
and invoked within namespace "mynamespace", there would still be no
collision.

Any ideas? Any advice would be much appreciated. My code now works ok.
I'm just wondering if there's a more elegant solution, or if I'm
missing some basics here.

Many thanks,
Max
 _______________________________________________
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: Newbie post. AssertMacros.h "check" function collides with C++ inline function defined in my namespace
      • From: Rippit the Ogg Frog <email@hidden>
  • Prev by Date: Re: Creating an installer for KEXT
  • Next by Date: Re: Newbie post. AssertMacros.h "check" function collides with C++ inline function defined in my namespace
  • Previous by thread: Re: Creating an installer for KEXT
  • Next by thread: Re: Newbie post. AssertMacros.h "check" function collides with C++ inline function defined in my namespace
  • Index(es):
    • Date
    • Thread