Why with virtual inheritance size more? I. 've thought it on the contrary. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 6

Why with virtual inheritance size more? I. 've thought it on the contrary.

Example code here, class D has virtual inheritance, C not. Sizeof C=16, I understand, but sizeof D 20, why? https://code.sololearn.com/chyDp6YY77lj/?ref=app

18th May 2017, 3:27 PM
shaldem
shaldem - avatar
0 ответов