
23 Aug
2011
23 Aug
'11
8:25 p.m.
Nevin Liber wrote:
My question is, given:
T c(T_Factory()); T d(T_Factory());
// ... move_raw(c, d);
3. At this point, what operations can you perform on c?
Assuming T is non-POD: only move_raw(x, c); where x must have a valid state prior to the raw move.
4. At this point, what operations can you perform on d?
Anything you want, as long as it is defined for T. Now I'm curious what comes next. :-)