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

Use Boost.Preprocessor to generate C++03 execute() overloads. #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nat-goodspeed
Copy link

This pull request streamlines {posix,windows}/execute.hpp by making Boost.Preprocessor do the multiple levels of repetition, generating BOOST_PROCESS_EXECUTE_INITIALIZERS overloads of the execute() function with appropriate numbers of template parameters, formal parameters and fusion::make_tuple() parameters.

This makes the header shorter, allowing the maintainer to focus on a single instance of the execute() function. It guarantees consistency among all the generated overloads, eliminating the possibility of a typo. And it permits the library user to extend the number of initializer arguments if desired.

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

Successfully merging this pull request may close these issues.

1 participant