?
=?iso-8859-1?Q?Fran=E7ois_Fleuret?=
Dear all,
I fear this is a question which has been asked zillions of
times. However, it seems to me to be such a legitimate feature that I
can't imagine it is impossible.
How can one know the size of an object in a "virtual" manner ?
For instance, how can I write a virtual function print_size(); which
prints the size of *this, and which will print the correct value with
an object of an inherited class ?
Thanks in advance for any hint,
I fear this is a question which has been asked zillions of
times. However, it seems to me to be such a legitimate feature that I
can't imagine it is impossible.
How can one know the size of an object in a "virtual" manner ?
For instance, how can I write a virtual function print_size(); which
prints the size of *this, and which will print the correct value with
an object of an inherited class ?
Thanks in advance for any hint,