
17 Jul
2004
17 Jul
'04
11:55 a.m.
Daniel Wallin <dalwan01@student.umu.se> 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