$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [interprocess] default constructors
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-11-30 07:11:03
Ion Gaztañaga wrote:
> Because in the review the two step construction (default ctor + open())
> was considered harmful. I guess now it would be useful in the presence
> of move semantics.
If you implement move as swap, there is no problem at all.
You could still implement move as transfer, leaving the moved-from
object in some state where only destruction and assignment are valid;
there is no need to make that state reachable from public
default-construction.