
3 Jan
2009
3 Jan
'09
1:56 a.m.
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