• 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: Nil and nil Macro Conflict
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nil and nil Macro Conflict


  • Subject: Re: Nil and nil Macro Conflict
  • From: Andreas Grosam <email@hidden>
  • Date: Tue, 01 May 2012 16:10:57 +0200

On May 1, 2012, at 3:56 PM, Scott Ribe wrote:

> On May 1, 2012, at 5:44 AM, Andreas Grosam wrote:
>
>> What are my options?
>
> You might have to wrap that sucker, so that you can compile that class as straight C++ and never include its header from Objective-C++, but instead use your wrapper class from Objective-C++.

Hm, the library is a header only template library - namely its spirit (from boost), so my chances to never include this library are zero ;)

Basically, I need something like the following to compile:

// file foo.m:

#include <Foundation/Foundation.h>


namespace nm {

    struct nil {};
    struct Nil {};
}


NSObject* o = nil;




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

  • Follow-Ups:
    • Re: Nil and nil Macro Conflict
      • From: Greg Parker <email@hidden>
    • Re: Nil and nil Macro Conflict
      • From: Scott Ribe <email@hidden>
References: 
 >Nil and nil Macro Conflict (From: Andreas Grosam <email@hidden>)
 >Re: Nil and nil Macro Conflict (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Nil and nil Macro Conflict
  • Next by Date: Re: Minimal document-based app
  • Previous by thread: Re: Nil and nil Macro Conflict
  • Next by thread: Re: Nil and nil Macro Conflict
  • Index(es):
    • Date
    • Thread