In this article

Compiler Warning (level 4) C4815

04/28/2015

2 minutes to read

In this article

'var' : zero-sized array in stack object will have no elements (unless the object is an aggregate that has been aggregate initialized)

An array with an undefined number of elements (zero-sized array) is the last member of a type and an object of the type was created on the stack. No memory will be allocated for the array. If you need a useful constructor, you can allocate memory for the struct on the heap.