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
> which is dereferenceable<...> must be downcast to const T& so that
> 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?


Boost list run by bdawes at, gregod at, cpdaniel at, john at