------- Comment #1 from paolo dot carlini at oracle dot com  2010-01-21 10:28 
-------
Jon, what's going on, here? I'm referring first of all to the version without
lambdas, so:

#include <future>

int work2(int value);

void work(int value)
   {
     auto handle = std::async(work2, value);
   }

As far as I can see, the problem is with the typename _Fn::result_type used in
the return type, which obviously work2 lacks. Looks like there is a defect in
the N3000 draft.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jwakely dot gcc at gmail dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42819

Reply via email to