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

Add functionality to copy construct a component #860

Closed
K-ballo opened this issue Sep 19, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@K-ballo
Copy link
Member

commented Sep 19, 2013

It would have to take a component id an optionally a locality where the copy should be done.

@ghost ghost assigned hkaiser Sep 19, 2013

@hkaiser

This comment has been minimized.

Copy link
Member

commented Sep 19, 2013

The suggested syntax would be:

 // create the copy on same locality as to_copy
hpx::future<hpx::id_type> id = hpx::copy<Component>(hpx::id_type to_copy);

// create the copy on target_locality
hpx::future<hpx::id_type> id = hpx::copy<Component>(hpx::id_type to_copy, hpx::id_type target_locality);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.