编译器警告(等级 2)C4285

如果使用中辍符应用,则“identifier::operator ->”的返回类型为递归

指定的 operator->() 函数不能返回为其定义的类型或对为其定义的类型的引用

下面的示例生成 C4285:

// C4285.cpp
// compile with: /W2
class C
{
public:
    C operator->();   // C4285
   // C& operator->();  C4285, also
};

int main()
{
}