Empty Base Optimisation MSVC

后端 未结 1 1655
庸人自扰
庸人自扰 2021-01-22 01:29

Empty base optimisation with multiple inheritance appears still to be broken in msvc++ 2010. Currently, it appears to only work for the first type derived from, so if you are de

1条回答
  •  天涯浪人
    2021-01-22 02:21

    Empty base optimisation with multiple inheritance appears still to be broken in msvc++ 2010

    What do you mean by "broken"? That, it is not Standard conformant?

    The Standard doesn't require empty classes to have zero size when deriving from them. An implementation may choose to optimize this or it may not at all.

    0 讨论(0)
提交回复
热议问题