【发布时间】:2012-09-19 05:52:28
【问题描述】:
我们知道下面的代码是重载了*和&操作符
X& operator*() const
{
return *this;
}
X* operator&() const
{
return this;
}
但我不知道下面的代码是什么意思? (可以通过build)好像是用来获取X的指针的。
operator X*() const
{
return this;
}
【问题讨论】:
标签: c++