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

Always stripping HPX command line arguments before executing start function #1443

Merged
merged 1 commit into from Apr 1, 2015

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Apr 1, 2015

This will fix #1437: hpx::init() should strip HPX-related flags from argv

@gentryx
Copy link
Member

gentryx commented Apr 1, 2015

Looks good to me, thanks!

std::string const& /*app_name*/, int argc, char** argv, hpx::runtime_mode mode)
inline int
init(util::function_nonser<int(int, char**)> const& f,
std::string const& /*app_name*/, int argc, char** argv,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the app_name not passed here? If it isn't used anyway, can't we remove it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. It was of no use for the old code but can now be utilized. I'll add that. OTOH, removing it wouldn't do any harm either...

sithhell added a commit that referenced this pull request Apr 1, 2015
Always stripping HPX command line arguments before executing start function
@sithhell sithhell merged commit d80a0e9 into master Apr 1, 2015
@sithhell sithhell deleted the fixing_1437 branch April 1, 2015 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hpx::init() should strip HPX-related flags from argv
3 participants