Boost logo

Boost :

Subject: Re: [boost] C++03 unique_ptr emulation
From: David Abrahams (dave_at_[hidden])
Date: 2009-01-02 20:56:33


on Fri Jan 02 2009, Howard Hinnant <hinnant-AT-twcny.rr.com> wrote:

> Agreed. The thing I like about my current effort is that clients see either lvalue or
> rvalue unique_ptr's (or whatever class you're trying to move-enable) and nothing
> else. No moved-from wrappers. Downsides include the fact that move(unique_ptr) is a
> friend of unique_ptr - a tight coupling that I would rather not have there. In
> C++0X, move is a completely generic std-function, a characteristic not achieved by
> this emulation.

Howard, do you have a test suite I can throw at this? I'd like to see
if I can decouple that thing for you.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk