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

Compile time check to assert # keywords == arity #378

Open
dyollb opened this issue Jan 3, 2022 · 0 comments · May be fixed by #379
Open

Compile time check to assert # keywords == arity #378

dyollb opened this issue Jan 3, 2022 · 0 comments · May be fixed by #379

Comments

@dyollb
Copy link

dyollb commented Jan 3, 2022

Experience has shown that C++ signatures may change over time: often arguments are added. Unfortunately, boost python will not complain if developers forget to update the bp export code.

make_function_aux in make_function.hpp already contains a check that the user did not provide too many keywords.
It would be useful if we could enable a check to assert that the number of keywords always is exactly equal to the number of arguments.

@dyollb dyollb linked a pull request Jan 3, 2022 that will close this issue
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 a pull request may close this issue.

1 participant