Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-04-10 10:11:17


From: "Markus Schöpflin" <markus.schoepflin_at_[hidden]>
> 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.

I'm not entirely convinced that we should add compiler-specific tests...
What do others think?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk