C1109: Generate call to Copy Constructor

[DISABLE, INFORMATION , WARNING, ERROR]

Description

An instance of a class was passed as argument of a function, needing to be copied onto the stack w ith the Copy Constructor. Or an instance of a class was used as initializer of another instance of the same class, needing to be copied to the new class instance with the Copy Constructor

Example
  struct A {

  
    A(A &);

  
    A();

  
  };

  
  void f(A a);

  
  void main(void) {

  
    A a;

  
    f(a); // generate call to copy ctor

  
  }

  
Tips

If conventional structure copying is desired, try to compile with the option -Cn=Ctr and do not declare copy constructors manually.