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: 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