Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-01-09 07:58:28


Darin,

>Does this have any effect? What's the runtime cost of calling a trivial
destructor? As far as I know, it's free.<

On its own yes it is, but what if you have a lot of them and have to
enumerate them and call the destructor on each item - its harder for the
compiler to optimise out the loop in this case, although I accept some
compilers may do this.

- John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk