Boost logo

Boost :

From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-06-13 16:02:35


--- In boost_at_[hidden], jsiek_at_l... wrote:
>
> Hmmm, I just replied to this but didn't see it posted to boost, I'll
> try again :)
>
>
> As I understand it the static_cast is essential because the *this
type
> which is dereferenceable<...> must be downcast to const T& so that
we
> can get T::operator*(). I think you'll find that it fails to compile
> without the static cast.

Ah yes, of course. It still makes me nervous, though. Is it worth the
risk of misuse? Is there a safer approach?

-Dave


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