我没有带我的 Effective C++,这让我非常烦恼,以至于我不得不要求自己保持理智。给定
class Foo : public Bar{}
void MyFunc(Bar &_input);
如果我传入 a Foo
,我是在纠结切片问题还是避免了它?
我没有带我的 Effective C++,这让我非常烦恼,以至于我不得不要求自己保持理智。给定
class Foo : public Bar{}
void MyFunc(Bar &_input);
如果我传入 a Foo
,我是在纠结切片问题还是避免了它?