boostorg / boostorg/python

Compile time check to assert # keywords == arity

Aperta
#378 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
537
Fork
223
Merge medio
11h 22m
PR unite (30g)
2

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.