Newbie post. AssertMacros.h "check" function collides with C++ inline function defined in my namespace
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