Re: [cairo] Re: Notes on cairo/win32



On Fri, 14 Jan 2005, Owen Taylor wrote:

> I have some belief that a C++ class is required to have the same
> in-memory layout as a C structure with the same members in the same
> order.

That's true to a limited extent; virtual methods, members in different
access levels or virtual inheritance can screw things up[1].

So far as I know none of those would be a problem for Rect though.

-mental

---

[1] http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html#faq-32.9





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]