Boost logo

Boost Users :

Subject: Re: [Boost-users] Compiler limitation (MSVS 2015 update 2) or real error using boost::async?
From: Juan Ramírez (jramirez.uy_at_[hidden])
Date: 2016-05-05 13:02:10

Based on this
doc, boost::async is defined as follows:

template <class F>
 future <><typename
result_of<typename decay<F>::type()>::type>async(F f);template <class
 future <><typename
result_of<typename decay<F>::type()>::type>async(launch policy, F f);

In your example you are calling the second overload, which takes a launch
policy in its first argument, boost::launch is an enum (se here
<>), i
guess the compiler is failing trying to create an enum from your class

I tried your example using boost::launch::async and capturing your tex
object: didn't have any problems at all.

Best regards,

On Thu, May 5, 2016 at 9:18 AM, James Swift <james_at_[hidden]> wrote:

> Hi,
> in case anyone wants to play with the example I provided but doesn't have
> access to MSVC you can do so online here.
> kind regards,
> James
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at