Does it need a copy constructor and an operator= for a class which have array member?
B data_; //B is a class
does class A need a copy constructor and an operator? in other words, is the default copy constructor is OK for class A?
I think if the default copy constructor/operator= can invoke copy constructor/operator= of class B, it will be OK, it's not necessary to define a copy constructor and operator=. otherwise, it's necessary.
I used Dev-C++ to test this case, I found the operator= of class B was invoked. I don't the other compilers are the same as Dev-C++. Or this is a standard of C++.