• 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: ARC and reinterpret_cast
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC and reinterpret_cast


  • Subject: Re: ARC and reinterpret_cast
  • From: Rick Mann <email@hidden>
  • Date: Wed, 18 Jul 2012 02:09:37 -0700

On Jul 18, 2012, at 1:22 , Jean-Daniel Dupas wrote:

> Just a though, but isn't it possible to define yourself a template function to do that ?
>
> something like
>
> template<class C>
> static inline C bridge_cast(void *ptr) { return (__bridge C)ptr;  }

Hey, that's kinda cool! I think that might work.

--
Rick


_______________________________________________

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

References: 
 >Re: ARC and reinterpret_cast (From: John McCall <email@hidden>)
 >Re: ARC and reinterpret_cast (From: Rick Mann <email@hidden>)
 >Re: ARC and reinterpret_cast (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Looking for better solution than this old hack
  • Next by Date: Re: Looking for better solution than this old hack
  • Previous by thread: Re: ARC and reinterpret_cast
  • Next by thread: NSTextView does not display updated values from core-data
  • Index(es):
    • Date
    • Thread