Re: [PATCH] C++ breaks on linux/ioport.h

From: Manfred Spraul (manfreds@colorfullife.com)
Date: Fri Apr 28 2000 - 07:42:54 EST


Jamie Lokier wrote:
>
>
> Just leave out the #undefs. You're not actually using new & virtual in
> your code, are you? :-)
>
Both new and virtual would work in kernel space, and most c++ programs
need them.
virtual: virtual functions are a simplified way for creating and
initializing function pointer tables in structures.
new: combination of kmalloc() + structure initialization. It's possible
to use kmalloc() instead of malloc() for the allocations.

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:15 EST