New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler chokes on dataflow overload with launch policy #776
Comments
Is this still a problem after the latest changes? |
yes, compilation still fails on gcc 4.7.1 |
I'm almost certain that this is a compiler problem. Have you tried other compilers? |
clang 3.1 reports the same problem, though with a much more readable error message:
I think this indeed is a bug because template substitution works with hpx::launch interpreted as Func, but only then the error occurs when trying to obtain the result_of. Maybe there should be a disable_if< is_same< Func , hpx::launch> > added? |
You are right, the overloads without a launch policy need to be disabled when Func is not a callable. |
The reason why it works with MSVC is because it is very lazy with template instantiations. |
i don't quite understand why the internal forward is working, though (when dataflow is called without a specific policy). |
Someone removed the internal forwarding. |
i tried using the new launch policy feature of local dataflows, but gcc doesnt like the additional overload. If I write:
the compiler tries to instantiate the dataflow with 3 arguments using the launch policy as functor, which obviously fails. Specifically providing the template parameters works:
The text was updated successfully, but these errors were encountered: