Skip to content

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

Open
@dyollb

Description

@dyollb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions