This documentation is archived and is not being maintained.

Const declaration cannot have an array initializer

Visual Studio 2008

You attempted to use an array initializer in a Const declaration.

Error ID: BC30445

To correct this error

  • Change the initializer to a valid expression by removing the surrounding braces.

Show: