If I have a class A without default constructor and a class B
class B {
private:
A m_a;
public:
B(A a) : m_a(a) {}
};
How is m_a now initialized? By the assignment operator of A or by the copy constructor?
If I have a class A without default constructor and a class B
class B {
private:
A m_a;
public:
B(A a) : m_a(a) {}
};
How is m_a now initialized? By the assignment operator of A or by the copy constructor?