i have problem with constructor i want do something like this:
A<int>* first = new B<int>
A<int> *second;
second= new B<int>(*A);
I have tried use in argument list pointer,reference and value and nothing work, and i cant tell why. This is my not working constructor :
template <class T>
B<T>::B(B<T> other)
it works with const A<T>&
thanks,
One more thing if i can. I must get access in this constructor to B class private class fields. And if i have only other which is A class. Can i do this in some other may?