+ 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 odpowiedzi