为什么警告this
#ifndef DLINK_H
#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