Compiler Error C3159
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error C3159

Error Message

'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() {
© 2015 Microsoft