|
|
|
|
|
|
H*M 发帖数: 1268 | 1 given two classes
class B
{
public:
B(args_1);
B(args_2);
// and many constructors with different arg lists
};
class D : public B
{
public:
D(args_1) : B(args_1) {}
D(args_2) : B(args_2) {}
// and many constructors with different signatures similarly implemented
// some additional stuff specific to D
};
Assume that the arg list for B's constructors are quite long and may berevis
ed pretty often in the future, in which case D's constructors have to be rec
oded correspondingly. Duplicating the upd | p***o 发帖数: 1252 | 2 21211
【在 H*M 的大作中提到】 : given two classes : class B : { : public: : B(args_1); : B(args_2); : // and many constructors with different arg lists : }; : class D : public B : {
| H*M 发帖数: 1268 | 3 谢谢。 找了templated class,但是还是不是很清楚。能有什么材料推荐下看么?或者直
接说两句?
thx!
【在 p***o 的大作中提到】 : 21211
| t****t 发帖数: 6806 | 4 http://mitbbs.com/article/JobHunting/31435253_3.html
者直
【在 H*M 的大作中提到】 : 谢谢。 找了templated class,但是还是不是很清楚。能有什么材料推荐下看么?或者直 : 接说两句? : thx!
|
|
|
|
|
|
|