sizeof derived already from base

Posted by Oops on Stack Overflow See other posts from Stack Overflow or by Oops
Published on 2010-04-29T08:52:51Z Indexed on 2010/04/29 8:57 UTC
Read the original article Hit count: 306

Filed under:
|

Hi,
is it possible to return the sizeof a derived class already from base class/struct?

imho the size of a class is a kind of property of itself, like the weight of a human being. But I don't want to write the same function in every class.

many thanks in advance
Oops

© Stack Overflow or respective owner

Related posts about c++

Related posts about sizeof