$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 10:01:03
Peter Dimov wrote:
>
> From: "Markus Schöpflin" <markus.schoepflin_at_[hidden]>
> > 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);
>
> No, this shouldn't compile. If it does, it's a(nother) bug. :-) The correct
> way to reassign a shared_ptr is
>
[snip]
Could you then add a test that this doesn't compile?
It did compile before the fix and I'm really quite nervous about this one.
TIA, Markus