std::list< Class const *> generates non-compilable code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyBindGen |
New
|
Undecided
|
Unassigned |
Bug Description
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_
It needs to be:
int _wrap_convert_
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(
module = Module('acc', cpp_namespace='::')
module.
module.
module.
module.
if __name__ == '__main__':
main()
The problem is in that the converter function in pybindgen/