[cairo] Re: Notes on cairo/win32

MenTaLguY mental at rydia.net
Fri Jan 14 12:49:32 PST 2005


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





More information about the cairo mailing list