C1423: Constant member must be in initializer list

[ERROR]

Description

There are constant members in the class/struct, that are not initialized with an initializer list in the object constructor.

Example
  struct A {

  
    A();

  
    const int i;

  
  };

  
  A::A() : i(4) {  // initialize i with 4

  
  }

  
Tips

If a const or reference member variable is not given a value when it is initialized, it must be given a value in the object constructor.