This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/42819] [C++0x] std::async fails to compile with simple tests, including N3000 example
- From: "jwakely dot gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2010 16:08:23 -0000
- Subject: [Bug libstdc++/42819] [C++0x] std::async fails to compile with simple tests, including N3000 example
- References: <bug-42819-6477@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from jwakely dot gcc at gmail dot com 2010-01-21 16:08 -------
(In reply to comment #8)
>
> Is there an easy workaround I can apply locally for this? I tried replacing all
> instances of `typename _Fn::result_type` with `typename
> result_of<_Fn(_Args...)>::type` in future just to see if I can get things going
That should be all that's needed, in theory.
> /usr/local/gcc-4.5-r156097/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../include/c++/4.5.0/functional:183:9:
> error: 'std::declval [with _Tp = std::launch, typename
> std::add_rvalue_reference<_Tp>::type = std::launch&&]()' cannot be used as a
> function
I'm not sure what's going on here and can't look into it now. Does the example
in Comment 1 work?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42819