Boost logo

Boost :

From: Bjorn.Karlsson_at_[hidden]
Date: 2002-06-18 08:00:22

> From: Markus Schöpflin [mailto:markus.schoepflin_at_[hidden]]
> David Abrahams wrote:
> >
> > That's not actually equivalent if you are passing multiple
> arguments. In
> > case of an exception, the unmanaged memory may leak.

Excellent point!
> I think this is the killer argument to change scoped_ptr.
> When I originally
> proposed the change I didn't even think of this.
> Markus

I wouldn't call it a killer argument, because I don't think this scenario
depicts a common case - but it is the added value that I was asking for, and
it does outweigh the cost.

In the light of this, I quickly toggle my opinion: Of course we need a
conversion from auto_ptr! :-)


Boost list run by bdawes at, gregod at, cpdaniel at, john at