Boost logo

Boost :

Subject: Re: [boost] [interest] underlying type library
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-08-21 17:40:56


On 20 August 2011 13:13, Marshall Clow <mclow.lists_at_[hidden]> 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_at_[hidden]> 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_at_[hidden]>  (847) 691-1404

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