
23 Aug
2011
23 Aug
'11
4:34 p.m.
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