C2014: No access to special member of member class

[WARNING]

Description

The special member (Constructor, destructor or assignment operator) could not be accessed.

Example
  struct A {

  
    private:

  
      A();

  
  };

  
  struct B  {

  
    A a;

  
  };

  
  void main() {

  
    B b;  // error

  
  }

  
Tips

Change the access specifier for the special member.

See also