I don't want to use the default constructor so I implement mine
class A
{
public:
A(int&i);
A& operator=(const A& a);
A(const A&a);
};
But in class B
class B
{
A a;
public:
B(const A&a){this->a=a;}
}
Then the error:
See Question&Answers more detail:osno appropriate default constructor of A found.