"Itay Maman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
"David B. Held" wrote:
> > [...]
> >     template <typename T>
> >     void operator()(const T& operand) const
> >     {
> >         operand.~T();
> >     }
> > [...]
>
> Is the destructor really a const function?
>
> 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.

I realize that the operator ought to be const.  But should the reference
be?  I guess I don't know if you should be able to call a d'tor on a
const& or not.

Dave




_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to