Downcast in a diamond hierarchy

后端 未结 0 1491
北恋
北恋 2021-02-12 07:47

Why static_cast cannot downcast from a virtual base ?

struct A {};
struct B : public virtual A {};
struct C : public virtual A {};
struct D : public         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题