Boost logo

Boost Users :

Subject: Re: [Boost-users] problems with Boost.Thread on VS10
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2012-04-07 05:11:56


On 4/6/2012 11:59 AM, Vicente J. Botet Escriba wrote:
> As you are using std::move, &&, ... why not using directly the C++11 Thread library
> provided with the compiler?

1) VS10 has && and std::move, but does not have the C++11 threading library.
   1b) A naive implementation (just starts a new OS thread) is not wanted.
   1c) but, an overly heavy implementation is not wanted either (i.e VS11 beta), because
of additional dependencies in the program to distribute.
2) In the final code, the && will be optional, to avoid copies on compilers that support
it, but must work with compilers that don't.
3) I need to preserve semantics of the code I'm replacing with modern C++ forms.

>
> BTW, Boost.Thread could not implement async using Boost, as Boost.Tuple, Boost.Bind
> Boost.Fusion (Tuple) because these libraries dont manage with rvalue references.

I don't understand how that applies to my compiler problem. It's telling me that

            task_object(F const& f_); // << refers to look here
            task_object(F&& f_); // <<<< Error here

are not a valid overloading set and instead conflict.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net