Click to See Complete Forum and Search --> : Size of obj having only void mem F() why?


Shakeel.shaik
April 19th, 2007, 12:39 AM
what would be the size of the obj of a class which is having only void member functions , Why is the main part of question?

paresh_chitte
April 19th, 2007, 12:52 AM
Please refer http://www.research.att.com/~bs/bs_faq2.html#sizeof-empty

Regards,

Paresh.

Zaccheus
April 19th, 2007, 03:18 AM
Note:

If the empty class contains virtual functions, then the size is likely to be the same as the size of a pointer.