为什么警告this
#define DLINK_H
//(c) ChenYu 2007.4.29
class DLink
{
public:
DLink(int i_d):p_prev(this),p_next(this),id(i_d){}//问题
int Id() const {return id;}
DLink const *Next() const {return p_next;}
DLink *Next() {return p_next;}
void SetNext(DLink *next){p_next=next;}
DLink const *Prev() const{return p_prev;}
DLink *Prev(){return p_prev;}
void SetPrev(DLink *prev){p_prev=prev;}
void Unlink();
private:
int id;
DLink *p_prev;
DLink *p_next;
};
#endif
为什么编译器警告我this有问题,用的是VS2005
相关推荐
Python3 pip3 list 出现 DEPRECATION 警告的解决方法
今天小编就为大家分享一篇Python3 pip3 list 出现 DEPRECATION 警告的解决方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
Intellij IDEA如何去掉@Autowired 注入警告的方法
主要介绍了Intellij IDEA如何去掉@Autowired 注入警告的方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
Python warning警告出现的原因及忽略方法
在本篇文章里小编给大家分享的是关于Python warning警告出现的原因及忽略方法,有需要的朋友们可以学习参考下。
IAR安装、编译等错误、警告集
主要解决IAR安装过程出现的小问题 错误提示: Fatal Error[Cp001]: Copy protecTIon check, No valid license found for this product [20] “Error[e16]: Segment CSTACK (size: 0x50 align: 0x1) is too long for segment definition. At least 0x50 more bytes needed. The problem occurred while processing the segment placement command "-Z(DATA)CSTACK+_STACK_SIZE#", ” Warning[Pe001]: last line of file ends without a newline F:\emoTion\IAR\PK 升级\CC1110-8\main.c 179
使用@Autowired注解警告Field injection is not recommended的解决
主要介绍了使用@Autowired注解警告Field injection is not recommended的解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧


