This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/42819] [C++0x] std::async fails to compile with simple tests, including N3000 example



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]