This topic has not yet been rated - Rate this topic

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() {
}
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Advertisement