Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Creating selectors to work around templates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating selectors to work around templates



Am 14.07.2011 um 04:11 schrieb Kelvin Chung:

> std::array<id, 3> threeIDs = {@"foo", @"bar", @"baz"};


Why would you have a C++ array of ObjC objects in the first array?

It's quite simple: If you want to store C++ "objects", use C++ classes. If you want to store ObjC objects, use ObjC classes.

--
Jonathan

Attachment: PGP.sig
Description: Signierter Teil der Nachricht

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Creating selectors to work around templates (From: Kelvin Chung <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.