Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-02-13 18:20:52

Chris Just <cpjust_at_[hidden]> writes:

> Of course you can unintentionally transfer ownership if you don't
> know what you're doing. ;) I believe that's why you're not supposed
> to pass an auto_ptr to a function

Who told you that? auto_ptr's ability to transfer ownership across
function boundaries is one of its most valuable features.

Dave Abrahams
Boost Consulting

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