Redian新闻
>
question on template and inheritance?
avatar
question on template and inheritance?# Programming - 葵花宝典
g*d
1
我用ctorrent, 本来好好的, 用netstat可以看到它在连别人. 但是昨天起突然不动了.
起来以后是
Listening on 0.0.0.0:2706
Press 'h' or '?' for help (display/control client options).
- 0/0/1 [0/2098/0] 0MB,0MB | 0,0K/s | 0,0K E:18,0
用netstat看不到任何连接, 这是怎么了? 谢!
avatar
M*n
2
Suppose we have the following declaration:
template
class Derived: public Base::Nested {
......
For this declaration,
Is Base or Nested the class name for the base?
If base is base class name, then what is Nested?
If Nested is the base class name, what is Base?
avatar
g*d
3
用-v mode看到, 1224439784 tracker connection refused
why?
avatar
t*t
4
没听说过namespace?

【在 M**********n 的大作中提到】
: Suppose we have the following declaration:
: template
: class Derived: public Base::Nested {
: ......
: For this declaration,
: Is Base or Nested the class name for the base?
: If base is base class name, then what is Nested?
: If Nested is the base class name, what is Base?

avatar
M*n
5
You are saying namespace can also be templated?

【在 t****t 的大作中提到】
: 没听说过namespace?
avatar
P*e
6
我估计你程序应该是这样的
template
class Base
{
pulic: class Nested{};
};
所以Nested is base

【在 M**********n 的大作中提到】
: Suppose we have the following declaration:
: template
: class Derived: public Base::Nested {
: ......
: For this declaration,
: Is Base or Nested the class name for the base?
: If base is base class name, then what is Nested?
: If Nested is the base class name, what is Base?

avatar
p*o
7
Nested is a sub-class of Base.

【在 M**********n 的大作中提到】
: Suppose we have the following declaration:
: template
: class Derived: public Base::Nested {
: ......
: For this declaration,
: Is Base or Nested the class name for the base?
: If base is base class name, then what is Nested?
: If Nested is the base class name, what is Base?

avatar
t*t
8
不是namespace, 但是都叫scope

【在 M**********n 的大作中提到】
: You are saying namespace can also be templated?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。