Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 2002-02-04 17:29:12

From: "Howard Hinnant" <hinnant_at_[hidden]>
> On Monday, February 4, 2002, at 11:15 AM, Jeremy Siek wrote:
> ...
> std::auto_ptr (and its authors) was a pioneer in this area. Like most
> pioneers, it got some key concepts right. And like most pioneers,
> auto_ptr is not perfect. Imho, the big thing it got wrong is that it
> gave auto_ptr move semantics with copy syntax:
> auto_ptr<int> a;
> auto_ptr<int> b(a); // looks like copy, but it is a move

The real hassle is

    void f(auto_ptr<int>);

which requires an assignment operator.

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