Re: Nil and nil Macro Conflict
Re: Nil and nil Macro Conflict
- Subject: Re: Nil and nil Macro Conflict
- From: William Squires <email@hidden>
- Date: Wed, 13 Jun 2012 19:52:06 -0500
1) When in doubt, use C4! (actually, plain old dynamite should work just fine!)
2) Shoot the (idiot) developer of the C++ code for doing that (may result in serious jail time...)
3) Fuggedabouddit!
4) Wait for ObjC 3.0 and hope it has a feature to isolate badly written (or named) code in a namespace...
On May 1, 2012, at 6:44 AM, Andreas Grosam wrote:
> I want to use a C++ software library which uses class names "nil" and "Nil" for a Cocoa application.
>
> Including the headers will fail due to name conflicts with the macros "Nil" and "nil".
>
> What are my options?
>
>
> Regards
> Andreas
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden