|
Boost : |
From: Howard Hinnant (hinnant_at_[hidden])
Date: 2002-02-04 17:43:58
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. 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! :-)
-Howard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk