Re: kext and std C++ algorithms?
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