Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-07-24 12:11:23


Ion Gaztañaga <igaztanaga_at_[hidden]> writes:

> Hi to all,

>

> The rvalue reference is likely to be accepted for the next standard

> and the standard library is also likely to be modified to implement move

> semantics. Googling around, the only thing I've found related to Boost

> and move semantics is Jonathan Turkanis' Boost Move Ptr

> (http://www.kangaroologic.com/move_ptr/).

>

> This move ptr and Howard's unique_ptr emulation code

> (http://home.twcny.rr.com/hinnant/cpp_extensions/unique_ptr_03.html) are

> similar and offer a good new smart pointer. However, I was wondering if

> we could try to sketch an emulation of "std::move()" for objects that

> are not unique_ptr/move_ptr. Something that would allow at least to

> define (portably, perhaps with a macro that in the future, with

> compilers that implement move semantics, can be expanded to the proper

> && signature) move constructors and assignments:

I've been intending to get this into Boost:

http://boost.cvs.sourceforge.net/boost-sandbox/boost-sandbox/boost/move.hpp

http://boost.cvs.sourceforge.net/boost-sandbox/boost-sandbox/libs/move/test/

You can find a long thread about this work here:

http://news.gmane.org/find-root.php?message_id=%3cc5mlde%24481%241%40sea.gmane.org%3e

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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