We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#include <hpx/config.hpp> #include <hpx/hpx.hpp> #include <hpx/hpx_start.hpp> #include <hpx/include/parallel_executors.hpp> #include <hpx/include/parallel_algorithm.hpp> struct my_executor : hpx::parallel::parallel_executor {}; //////////////////////////////////////////////////////////////////////////////// /* This will only compile if below is uncommented */ //namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v3) { namespace detail //{ // template <> // struct is_executor<my_executor> // : std::true_type // {}; //}}}} //////////////////////////////////////////////////////////////////////////////// int hpx_main(int argc, char* argv[]) { using hpx::parallel::for_each; using hpx::parallel::par; my_executor exec; std::vector<int> v(100); for_each(par.on(exec), v.begin(), v.end(), [](int x){ }); return hpx::finalize(); } int main(int argc, char* argv[]) { hpx::start(argc, argv); return hpx::stop(); }
The text was updated successfully, but these errors were encountered:
Fix #1691: is_executor template specification fails for inherited exe…
33e5c5e
…cutors - types derived from parallel::executor_tag are treated as executors by default
@dcbdan Please see #1693. Does this solve your issue?
Sorry, something went wrong.
a7094c6
Merge pull request #1693 from STEllAR-GROUP/fixing_1691
4d88d66
Fix #1691: is_executor template specification fails for inherited executors
No branches or pull requests
The text was updated successfully, but these errors were encountered: