|
Boost Users : |
From: Nat Goodspeed (nat_at_[hidden])
Date: 2008-01-03 11:27:10
Michael Bradley Jr wrote:
> class A;
> class B : public A;
>
> boost::shared_ptr<A> pA;
> boost::shared_ptr<B> pB;
>
> Would like to cast pB to pA with a construct like the *static_cast* but that
> ain't really pretty !
? Won't it just implicitly cast? e.g.
boost::shared_ptr<A> pA2 = pB;
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