阅读背景:

When should I use templates instead of inheritance, and vice versa?

来源:互联网 

In many situations, the question doesn't even ask itself, since sometimes inheritance provides necessary features which templates can't provide. For example, when I need to address different types via one base-type (polymorphism), I need to use inheritance.In many situations, the question doesn't even a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: