Glynn Clements wrote:
OTOH, I suspect that virtual methods are always "used" when intialising the virtual method table, so it's less likely that they could be omitted. If you want a definite answer, test it.
Well I tested it and it is obvious that the trick is able to weed out unused class members too -- run the contents of the attachment.
But I did not comprehend how you suspect that having virtual function (I presume methods are the same as functions) will create different results. Can you make an example based on the example I attach here?
Thanks. Shriramana Sharma.
Attachment:
class-member-function-sections.tar.gz
Description: application/gzip