Re: ARC and reinterpret_cast
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