From: Greg Colvin (gcolvin_at_[hidden])
Date: 2002-02-04 20:05:37
From: "Howard Hinnant" <hinnant_at_[hidden]>
> On Monday, February 4, 2002, at 05:29 PM, Greg Colvin wrote:
> > The real hassle is
> > void f(auto_ptr<int>);
> > f(a);
> > which requires an assignment operator.
> Agreed about the hassle part. It would be neat if there were either a
> generalized language or library solution so that one could easily add
> move semantics to vector, string, bob and alice.
Yep. You would need both a move operation and a way to specify
whether whether a function argument was to be copied or moved.
> I imagine you would be
> one of the first to agree that giving auto_ptr move semantics was not
> easy, or at least not straight forward! :-)
It was the most evil and ugly thing I was ever forced to do. ;->
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk