Compiler Error C3159

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C3159.

pointer' : array of pointers to value type cannot be declared

An array of pointers to a value type cannot be declared.

C3159 is only reachable using /clr:oldSyntax.

The following sample generates C3159:

// C3159.cpp  
// compile with: /clr:oldSyntax  
#using <mscorlib.dll>  
  
__value struct B {  
};  
  
void f( B*[] );   // C3159  
  
int main() {  
}  

Show: