Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-07-17 06:55:24


Daniel Wallin <dalwan01_at_[hidden]> writes:

> Eric Niebler wrote:
>> (Some fancy auto_ptr-like move shenanigans are needed to make the
>> lock return-able but not copy-able.)
>
> I think there's a better way to express types that are movable but not
> copyable, which could work on more compilers.

This looks a lot like the move library idiom that's in the sandbox.
Interesting the way you prevent copying, though -- maybe that'll work
on vc6. Since vc6 binds temporaries to non-const references
willy-nilly I found I couldn't prevent copying.

-- 
Dave Abrahams
Boost Consulting
http://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