【发布时间】:2009-09-18 14:17:10
【问题描述】:
这是我想要开始工作的代码:
template <class A>
class B : public A {
public:
// for a given constructor in A, create constructor with identical parameters,
// call constructor of parent class and do some more stuff
B(...) : A(...) {
// do some more stuff
}
};
是否可以实现上述示例所描述的行为?
【问题讨论】:
标签: c++ templates constructor