• 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: kext and std C++ algorithms?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kext and std C++ algorithms?


  • Subject: Re: kext and std C++ algorithms?
  • From: Joseph Kelly <email@hidden>
  • Date: Wed, 20 Aug 2008 08:52:19 -0700

Yeah, I don't mean to second guess the engineers at Apple who described the restriction, but I would imagine it is more barring the use of stl, and not templates in general.

But circumventing the build system to pull in bits of the C++ standard might have 2 pitfalls -- if there are no symbol conflicts between libkern and the vanilla C++ library, then you'll still run into runtime dependencies.

You should collaborate on a template library for kext developers is what I'm saying :-)

Joe K.

On Aug 20, 2008, at 8:28 AM, David Rowland wrote:


On Aug 19, 2008, at 10:49 PM, Joseph Kelly wrote:

Kext development uses a limited subset of C++ -- templates are not allowed, so no stl, no std::min()/max() etc. No RTTI either. Min and Max are easily implemented as macros (minus the type checking). Libkern provides you with some basic container classes, and an RTTI scheme.

I have used templates in a limited way in kext development. Templates are completely handled after the preprocessor , during actual compilation. They have nothing to do with the destination of the code they create.




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >kext and std C++ algorithms? (From: "Duane Murphy" <email@hidden>)
 >Re: kext and std C++ algorithms? (From: Joseph Kelly <email@hidden>)
 >Re: kext and std C++ algorithms? (From: David Rowland <email@hidden>)

  • Prev by Date: Re: kext and std C++ algorithms?
  • Next by Date: Re: Activating gcc 4.2 [was XCode 3.1 and 2.5]
  • Previous by thread: Re: kext and std C++ algorithms?
  • Next by thread: Pthread Priority
  • Index(es):
    • Date
    • Thread