Visual Studio Compiler warning C4250 ('class1' : inherits 'class2::member' via dominance)

前端 未结 5 2085
梦毁少年i
梦毁少年i 2020-12-10 04:59

The following code generates warning C4250. My question is, what\'s the best solution to it?

class A
{
  virtual void func1();
}

class B : public A
{
}

cla         


        
5条回答
  •  天涯浪人
    2020-12-10 05:42

    [A comment really, but I don't have enough rep...]

    David Segonds identified this as a known bug in VS 2005, just tried his example code in VS 2008 and it exhibits the same problem.

提交回复
热议问题