|
Boost Users : |
Subject: Re: [Boost-users] boost::exception_detail::error_info_base does not have virtual destructor
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2011-03-17 16:13:12
-----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-----
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net