3 /* cpp - C++ in the kernel
5 ** Initial version by Axel Dörfler, axeld@pinc-software.de
6 ** This file may be used under the terms of the MIT License.
16 // Oh no! C++ in the kernel! Are you nuts?
19 // - (almost) no virtuals (well, the Query code now uses them)
20 // - it's basically only the C++ syntax, and type checking
21 // - since one tend to encapsulate everything in classes, it has a slightly
22 // higher memory overhead
24 // - easier to maintain
27 inline void *operator new(size_t size
, const nothrow_t
&) throw()
32 inline void *operator new[](size_t size
, const nothrow_t
&) throw()
37 inline void operator delete(void *ptr
)
42 inline void operator delete[](void *ptr
)
47 // now we're using virtuals
48 extern "C" void __pure_virtual();
50 //extern nothrow_t _dontthrow;
51 //#define new new (_dontthrow)