Boost logo

Boost :

Subject: Re: [boost] [interprocess] default constructors
From: David Abrahams (dave_at_[hidden])
Date: 2008-12-04 13:54:11


on Wed Dec 03 2008, Mathias Gaunard <mathias.gaunard-AT-ens-lyon.org> wrote:

> David Abrahams wrote:
>
>> I don't think it's unfortunate. Destructive move semantics is nearly
>> impossible to use correctly in many conditions.
>
> Would you mind giving examples?

  void f()
  {
      X a;
      if (something)
         g(move(a));
      // ...
      
      // a.~X() ?
  }

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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