
17 Jul
2004
17 Jul
'04
3:37 p.m.
David Abrahams wrote:
Daniel Wallin <dalwan01@student.umu.se> writes:
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.
Yes, I think it should work on VC6. However, since SFINAE won't work, it will break is_convertible (because the template constructor will be enabled for anything). -- Daniel Wallin