编译器错误 C3699
“operator”: 不能对类型“type”使用此间接寻址
尝试使用 type
不允许的间接寻址。
示例
以下示例生成 C3699。
// C3699.cpp
// compile with: /clr /c
using namespace System;
int main() {
String * s; // C3699
// try the following line instead
// String ^ s2;
}
普通属性不能具有引用类型。 有关更多信息,请参见 property 。 以下示例生成 C3699。
// C3699_b.cpp
// compile with: /clr /c
ref struct C {
property System::String % x; // C3699
property System::String ^ y; // OK
};
“指向指针的指针”语法的等效项是跟踪引用的句柄。 以下示例生成 C3699。
// C3699_c.cpp
// compile with: /clr /c
using namespace System;
void Test(String ^^ i); // C3699
void Test2(String ^% i);