C2202: Too many initializers for global Ctor arguments

[ERROR]

Description

An initialization of a global array of class objects with constructor call arguments was having more arguments than elements in the array.

Example
  struct A {

  
    A(int);

  
  };

  
  A a[3]={3,4,5,6};  // errors

  
  A a[3]={3,4,5};    // ok

  
Tips

Provide the same number of arguments than number of elements in the global array of class objects. If you want to make calls to constructors with more than one argument, use explicit calls of constructors.

See also