Boost logo

Boost :

Subject: Re: [boost] [proposal] raw move
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-08-23 12:34:03


El 23/08/2011 17:17, Christopher Jefferson escribió:

> When moving was originally discussed, things like 'destructive' and
> 'raw' moves were discussed, but it was decided in the end they were
> too dangerous, without proving substantial benefits. For example, you
> can rearrange a list of std::vectors with memcpy, but if you get half
> way through and an exception is thrown and you end up with the same
> vector left in two places in memory, horrible things will happen as
> they will refer to the same memory block.

IMHO, destructive move should be required always to be no-throw.

Best,

Ion


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