Boost logo

Boost :

Subject: Re: [boost] [proposal] raw move (was: [interest] underlying type library)
From: Julian Gonggrijp (j.gonggrijp_at_[hidden])
Date: 2011-08-23 16:25:44


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. :-)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk