This documentation is archived and is not being maintained.

Compiler Error C2538

Error Message

new : cannot specify initializer for arrays

An initializer is given for an array created with the new operator. The new operator creates arrays of objects by calling the default constructor for each element of the array. The elements of the array cannot be initialized to distinct values.