|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-09-21 13:04:32
From: "Thomas Witt" <witt_at_[hidden]>
> On Saturday 21 September 2002 19:22, Peter Dimov wrote:
> > BTW overplaying copy+swap is a good thing. It's difficult to make a
mistake
> > when using copy+swap, and it's incredibly easy to make a mistake when
> > hand-coding. Even shared_ptr had a bug in its copy+swap-less operator=
> > IIRC. Or was it reset?
>
> FWIW it was reset but scoped_ptr.
My memory may be short but it's not _that_ short. :-) I was thinking of
http://sourceforge.net/tracker/index.php?func=detail&aid=465404&group_id=758
6&atid=107586
when I wrote the above. Of course scoped_ptr::reset is a valid example, too.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk