|
Boost : |
From: David Abrahams (abrahams_at_[hidden])
Date: 2000-05-29 19:55:56
> 2a) Remove implicit_cast entirely. Add a comment to the docs saying
> to use static_cast.
>
> 2b) Replace implicit_cast with unchecked_numeric_cast. See Darin
> Adler's http://www.egroups.com/message/boost/885
I don't remember much about the implicit_cast<> stuff, except that it became
a morasse.
One thing I'm looking for is a way to explicitly get a base class pointer
from a derived class pointer without declaring a new variable and without
doing something which might allow downcasts or other potential mistakes. It
would be great to do the same for references.
boost::upcast<>() anyone?
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk