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

Reply via email to