$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Signals\Signals2] Move semantics
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2011-08-29 09:04:31
2011/8/27 Dave Abrahams <dave_at_[hidden]>:
>
> No, it's the easiest way to get move assignment semantically correct,
> but not "the preferred way." At least, it's not universally preferred.
> See http://cpp-next.com/archive/2009/09/your-next-assignment/
>
Thanks, great read! I am still trying to fully understand all implications of
move semantics. For example: is std/boost::move() killer of potential RVO?
I mean:
std::vector<int> getNumbers()
{
std::vector<int> ret;
// fill data
return move(ret) // will that kill potential (N)RVO?
}
Regards,
Szymon