|
From: | Marcus Müller |
Subject: | Re: "Modern" server socket programming? |
Date: | Tue, 8 Jan 2013 18:08:56 +0100 |
On 08.01.2013, at 18:02, Chan Maxthon <address@hidden> wrote:
Sure, but that's not the problem here. The problem is that when you #import "ULINetSocket.h" (in your ARC-ready code), you also drag in references to <CoreFoundation/CoreFoundation.h> from the same code, which gives you something like this: In file included from ./ULINetSocket.h:34: In file included from /usr/local/include/CoreFoundation/CoreFoundation.h:36: In file included from /usr/local/include/CoreFoundation/CFBundle.h:31: In file included from /usr/local/include/CoreFoundation/CFURL.h:34: /usr/local/include/CoreFoundation/CFString.h:538:15: error: ARC forbids Objective-C objects in structs or unions CFStringRef theString; Of course you could get rid of the requirement for CoreFoundation.h in ULINetSocket.h by masking all CF-refs to something opaque (void *), but then again, there's other CF-code missing and so on. Lot's of work, but nothing to gain here. Cheers, Marcus -- Marcus Müller . . . http://www.mulle-kybernetik.com/znek/ |
smime.p7s
Description: S/MIME cryptographic signature
[Prev in Thread] | Current Thread | [Next in Thread] |