$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [container] Initialization from transformed_range compilation error
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2011-09-07 11:40:11
2011/9/7 Ion Gaztañaga <igaztanaga_at_[hidden]>:
> El 07/09/2011 0:05, Szymon Gatner escribió:
>
> It's moved, this feature produces the limitation (must define
> copy-constructor for copyable types owning copyable and movables classes
> like boost::container::vector) that Daniel has suffered. Example:
>
It is still not clear to me. What is moved and in under what conditions?
Let me clarify me question: will this move or copy:
boost::container::vector<int> makeInts()
{
boost::container::vector<int> ret;
//....
return ret;
}
boost::container::vector<int> ints;
ints = makeInts() <========= move or copy?
Regards,
Simon