Re: C++ in kernel (was Re: exception in a device driver)

Chip Salzenberg (chip@perlsupport.com)
Sat, 16 Jan 1999 13:44:58 -0500


According to Khimenko Victor:
> Now about speed issue:

> -- C++ code --
> struct Base {
> int x;
> virtual foo() { }
> virtual ~Base() { }
> };

This C++ code is not equivalent to the C code below, because the C
code does not include any equivalent to a virtual destructor.

-- 
Chip Salzenberg      - a.k.a. -      <chip@perlsupport.com>
      "When do you work?"   "Whenever I'm not busy."

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