Say I have:
class A { A(int i); }; class B : A { };
I cannot set B (3), for example, since this constructor is not defined. Is there a way to create an object B that will use constructor A without having to add “trivial” code in all derived classes? thanks
thanks
source share