When a container is added for a list of pointers to const objects, the generated code has compilation errors.
The generated method signature is
int _wrap_convert_py2c__CReportSpec_const___star__(PyObject *value, CReportSpec * *address);
It needs to be:
int _wrap_convert_py2c__CReportSpec_const___star__(PyObject *value, CReportSpec const * *address);
The following script will produce this error case in the pybindgen 0.16.0 archive.
from pybindgen import Module, FileCodeSink import sys
def main(): out = FileCodeSink(sys.stdout) module = Module('acc', cpp_namespace='::')
module.add_include('"const_test.hpp"') module.add_class('CReportSpec', ) module.add_container('std::list< CReportSpec const * >', 'CReportSpec const *', container_type='list')
module.generate(out)
if __name__ == '__main__': main()
When a container is added for a list of pointers to const objects, the generated code has compilation errors.
The generated method signature is
int _wrap_convert_ py2c__CReportSp ec_const_ __star_ _(PyObject *value, CReportSpec * *address);
It needs to be:
int _wrap_convert_ py2c__CReportSp ec_const_ __star_ _(PyObject *value, CReportSpec const * *address);
The following script will produce this error case in the pybindgen 0.16.0 archive.
from pybindgen import Module, FileCodeSink
import sys
def main(): sys.stdout)
out = FileCodeSink(
module = Module('acc', cpp_namespace='::')
module. add_include( '"const_ test.hpp" ') add_class( 'CReportSpec' , ) add_container( 'std::list< CReportSpec const * >', 'CReportSpec const *', container_ type='list' )
module.
module.
module. generate( out)
if __name__ == '__main__':
main()