Automatyczne tworzenie konstruktora na podstawie konstruktora klasy macierzystej (C ++)
Oto kod, który chciałbym dostać do pracy:
template <class A>
class B : public A {
public:
// for a given constructor in A, create constructor with identical parameters,
// call constructor of parent class and do some more stuff
B(...) : A(...) {
// do some more stuff
}
};
Czy możliwe jest zachowanie opisane powyżej?