Boost logo

Boost Users :

Subject: Re: [Boost-users] casting shared pointers to derived classes
From: Václav Zeman (v.haisman_at_[hidden])
Date: 2012-01-11 12:08:17


On 01/11/2012 05:17 PM, spam-receiver_at_[hidden] wrote:
> Cast a Layer to an OutputLayer:
>
> boost::shared_ptr<Layer> layer = getLayer();
> boost::shared_ptr<OutputLayer> outputLayer =
> boost::dynamic_pointer_cast<OutputLayer>(layer);
I wonder why is boost::detail::dynamic_cast_tag part of the detail
namespace and not part of the public API instead. It seems it would be
useful in this and similar cases.

>[...]

-- 
VZ



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net