草庐IT

ISwitchable

全部标签

c++ - 不同编译器的C++虚继承实现不兼容?

我有这样的公共(public)接口(interface)层次结构:structISwitchable{/*Obtainpointertoanotherimplementedinterfaceofthesameinstance.*/virtualintswitch(unsignedintinterfaceId,void**pInstance)=0;};structIFoo:publicISwitchable{/*Methods*/};structIBar:publicISwitchable{/*Methods*/};structIFooBar:publicIFoo,publicIBar{