Boost logo

Boost :

From: Itay Maman (itay_maman_at_[hidden])
Date: 2003-02-18 17:58:46


"David B. Held" wrote:

> > [...]
> > template <typename T>
> > void operator()(const T& operand) const
> > {
> > operand.~T();
> > }
> > [...]
>
> Is the destructor really a const function?
>
> Dave
>
The object being destroyed is the formal parameter "operand". The object whose operator() is called is not changed at all, thus the 'const' qualification is in place.

-Itay.

 



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