C1807: No conversion to non-base class

[ERROR]

Description

There is no conversion from a class to another class that is not a base class of the first class.

Example
  struct A {

  
    int i;

  
  };

  
  struct B : A {

  
    int j;

  
  };

  
  void main() {

  
    A a;

  
    B b;

  
    b=a;  // error:  B is not a base class of A

  
  }

  
Tips

Remove this statement, or modify the class hierarchy.