
17 Mar
2011
17 Mar
'11
8:13 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, March 17, 2011, Ted Byers wrote:
Again, can you point to a significant downside to having all destructors virtual?
The usual reason given is that if the class has no other virtual functions, then making the destructor virtual adds some size overhead to each object, since they have to keep a pointer to a virtual function table. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk2Ca1gACgkQ5vihyNWuA4WnzwCfSkE+W2ID9KakKira3SE5M8ew RLcAoJ42oagFlGSjus0UyFhUEdN/va4d =RSFY -----END PGP SIGNATURE-----