dimanche 21 juillet 2019

Can I use "this" with delegating constructors?

C++11 introduced the possibility of delegating construction from one constructor to another - "delegating constructors".

But - when doing that, can we use the this pointer? e.g. as an argument to one of the constructors we're delegating to?

Aucun commentaire:

Enregistrer un commentaire