Kompilatorfel C3699

"operator" : kan inte använda denna indirektion för typen "typ"

Anmärkningar

Ett försök gjordes att använda indirektion som inte är tillåten på type.

Examples

I följande exempel genereras C3699.

// C3699.cpp
// compile with: /clr /c
using namespace System;
int main() {
   String * s;   // C3699
   // try the following line instead
   // String ^ s2;
}

En trivial egenskap kan inte ha referenstyp. Mer information finns i property. I följande exempel genereras C3699.

// C3699_b.cpp
// compile with: /clr /c
ref struct C {
   property System::String % x;   // C3699
   property System::String ^ y;   // OK
};

Motsvarigheten till en "pekare till en pekare"-syntax är ett handtag till en spårningsreferens. I följande exempel genereras C3699.

// C3699_c.cpp
// compile with: /clr /c
using namespace System;
void Test(String ^^ i);   // C3699
void Test2(String ^% i);