Compile time check to assert # keywords == arity
未关闭
- 主要语言
- C++
- 星标
- 537
- 派生
- 223
- 平均合并
- 11 小时 22 分钟
- 30 天内合并 PR
- 2
描述
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.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。