Boost logo

Boost :

Subject: Re: [boost] [move] new rvalue reference emulation
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2012-01-23 13:27:41

On Mon, Jan 23, 2012 at 10:16 AM, Vicente J. Botet Escriba <
vicente.botet_at_[hidden]> wrote:

> Le 23/01/12 17:55, Jeffrey Lee Hellrung, Jr. a écrit :
>> On Sat, Jan 21, 2012 at 4:22 PM, Vicente Botet<vicente.botet_at_[hidden]**
>> >wrote:
>> Hi,
>>> Are there any news about this Move improvements?
>>> Best,
>>> Vicente
>> None from my end.
>> I've thought about it a bit since, and I *think* you can get by using this
>> with any change to the existing Boost.Move infrastructure (only
>> additions),
>> so, if desired, it could be added to an "advanced techniques in C++03"
>> section or something like that.
>> Do you think it's worth adding to Boost.Move?
>> I need to emulate the thread constructor
> template <class F, class ...Args> explicit thread(F&& f, Args&&... args);
> at least for 2 args.
> If I have understood, there are some constraints when applying your
> technique on constructors, but guess that this is better than nothing.
> So yes, I would like to see a clear description on how to emulate this
> kind of functions with Boost.Move+ your additions
> Best,
> Vicente

Yikes. That could be challenging (in C++03). Though it's made easier by
thread being pimpl'ed (at least, I'm guessing thread is pimpl'ed). Let me
see if I can come up with a full example illustrating the technique for
such a case. Give me a day or two :)

- Jeff

Boost list run by bdawes at, gregod at, cpdaniel at, john at