Skip to content
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

Can't specify RemoteResult with lcos::async #240

Closed
brycelelbach opened this issue Jul 10, 2012 · 1 comment
Closed

Can't specify RemoteResult with lcos::async #240

brycelelbach opened this issue Jul 10, 2012 · 1 comment
Milestone

Comments

@brycelelbach
Copy link
Member

[reported by blelbach] [Trac time Sat Oct 29 19:57:30 2011] There is no way to pass a RemoteResult template parameter to the eager_future/promise created by the lcos::async utility function.

@brycelelbach
Copy link
Member Author

[comment by hkaiser] [Trac time Sat Feb 18 21:24:58 2012] Why would you want to do that? The function hpx::lcos::async() is defined as

    template <typename Action>
    promise<
        typename traits::promise_local_result<
            typename Action::result_type
        >::type,
        typename Action::result_type
    >
    async (naming::id_type const& gid)
    {
        return eager_future<Action>(gid);
    }

That means the remote result type is taken directly from the encapsulated action type, something you always want to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant