boostorg / boostorg/python

Compile time check to assert # keywords == arity

Offen
#378 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
537
Forks
223
Ø Merge
11 Std. 22 Min.
Gemergte PRs (30 T.)
2

Beschreibung

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](https://github.com/boostorg/python/blob/develop/include/boost/python/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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.