Boost logo

Boost :

Subject: Re: [boost] [variant] Please vote for behavior
From: Dave Abrahams (dave_at_[hidden])
Date: 2013-02-06 16:10:39

on Sat Feb 02 2013, Sebastian Redl <> wrote:

> Anything that gives the target object the state the source object had
> and is cheaper than a copy is a successful move, really. That is what
> a move ultimately is: an optimization of copying.

I never liked that characterization. If move were an optimization of
copy it would have all the semantics of copy... but it doesn't. In a
move, the source object state becomes indeterminate.

Dave Abrahams

Boost list run by bdawes at, gregod at, cpdaniel at, john at