|
Boost : |
From: Darin Adler (darin_at_[hidden])
Date: 2000-01-23 12:08:53
I'm not sure why we're planning on providing const cast and static cast, but
not dynamic cast. I think it would be good to have all three. Maybe I missed
the explanation of why dynamic cast should not be provided.
Greg Colvin:
> For genericity we should probably have versions of these that
> operate on raw pointers as well.
We should make polymorphic_cast and polymorphic_downcast work as well. This
can be done either by overloading the existing definitions or changing them
to take Base parameters instead of Base* parameters and use do_dynamic_cast
as long as that works on raw pointers as Greg suggests.
-- Darin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk