Navigation Menu

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

hpx::init should take functions by std::function and should accept all forms of hpx_main #534

Closed
brycelelbach opened this issue Sep 19, 2012 · 1 comment

Comments

@brycelelbach
Copy link
Member

Currently, hpx::init takes only pure function pointers, making it impossible to do things like pass a bound function to hpx::init. Additionally, hpx::init does not accept int(void) and int(int, char**) versions of main().

@ghost ghost assigned hkaiser Oct 21, 2013
@hkaiser
Copy link
Member

hkaiser commented Oct 21, 2013

This has been resolved. The main hpx::init overload now takes a int(boost::program_options::variables_map& vm)> and we added an overload taking a function<int(int, char**)>.

@hkaiser hkaiser closed this as completed Oct 21, 2013
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

2 participants