
21 Aug
2011
21 Aug
'11
9:40 p.m.
On 20 August 2011 13:13, Marshall Clow <mclow.lists@gmail.com> wrote:
On Aug 20, 2011, at 10:45 AM, Olaf van der Spek wrote:
On Sat, Aug 20, 2011 at 6:28 PM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
You cannot use bitwise copy to implement move semantics. That just doesn't work.
Hmm, why not? What breaks if you do a bitwise swap?
Consider a type that looks contains a pointer to one of its member vars.
And this sort of thing is all to easy to do and not notice if one of your member variables is a boost::function that is created from boost::bind(..., this, ...). -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404