$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-04-10 09:38:56
Peter Dimov wrote:
>
> From: "Markus Schöpflin" <markus.schoepflin_at_[hidden]>
>
> > Disable template<typename Y> shared_ptr::shared_ptr &
> operator=(shared_ptr<Y> const & r)
> > for this compiler?
>
> Done, thanks. I was worried about existing code but actually this operator=
> is merely an optimization. Fixed weak_ptr as well.
>
Thanks a lot!
Did you add a test for this? Something along the lines of
boost::shared_ptr<int> p_i;
p_i = new int(42);
BOOST_TEST(p_i.get() != 0);
Markus