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

Replace distributing factories with new_<T[]>(...) #1448

Closed
hkaiser opened this issue Apr 5, 2015 · 2 comments
Closed

Replace distributing factories with new_<T[]>(...) #1448

hkaiser opened this issue Apr 5, 2015 · 2 comments

Comments

@hkaiser
Copy link
Member

hkaiser commented Apr 5, 2015

The existing distributing factories are cumbersome (and obsolete). We should replace them with

hpx::future<std::vector<id_type> > v = hpx::new_<Component[]>(...);

were the placement of the newly created components should be customizable with a distribution policy. We should also extend the existing new_<Compoent>() (for creating a single instance) with a similar placement policy.

@hkaiser
Copy link
Member Author

hkaiser commented Apr 5, 2015

This snippet demonstrates a technique for how this could be implemented: https://ideone.com/jN78LQ

@hkaiser
Copy link
Member Author

hkaiser commented Apr 17, 2015

This has been fixed by merging #1456

@hkaiser hkaiser closed this as completed Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant