Memory Layout difference between nested classes and multiple inheritance in C++?

前端 未结 4 1918
盖世英雄少女心
盖世英雄少女心 2020-12-19 18:59

I am trying to understand how COM specifies the layout of its objects so that a client that wants to use a COM object knows how to do it.

I\'ve read that a COM obje

4条回答
  •  情话喂你
    2020-12-19 19:23

    If there are virtual functions involved in the mix, in particular if the most derived class adds any of its own, then the memory layout of both approaches will differ.

提交回复
热议问题