• 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: Tue, 19 Aug 2008 22:49:12 -0700

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.

http://developer.apple.com/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/Features/chapter_2_section_6.html#/ /apple_ref/doc/uid/TP0000012-TPXREF105

Joe K.

On Aug 19, 2008, at 4:54 PM, Duane Murphy wrote:

How can I use some of the really basic template functions in the C++
library in a kext?

I'd like to use some simple things, like min(), max(), for_each(),
find(), etc. These templates should work just fine in a kext, but the
kext project includes -nostdinc. How do I re-enable -nostdinc so that I can


#include <algorithms>

Thanks,

...Duane

_______________________________________________
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

_______________________________________________ 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
  • Follow-Ups:
    • Re: kext and std C++ algorithms?
      • From: David Rowland <email@hidden>
    • Re: kext and std C++ algorithms?
      • From: "Duane Murphy" <email@hidden>
References: 
 >kext and std C++ algorithms? (From: "Duane Murphy" <email@hidden>)

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