jeudi 3 mars 2016

Is there a way to access the initializer list when inheriting constructors?

I am currently working on a class hierarchy, where a class B inherits from A and uses the feature of C++ which allows to inherit constructors directly by typing:

using A::A;

rather copying all existing constructors. Is there a way to initialize class attributes of class B, that would otherwise be initialized by the initialization list?

Aucun commentaire:

Enregistrer un commentaire