Ubuntu – SWIG wrap for Python a void function with an output reference to smart pointer parameter
Along the lines of this question, suppose we have a C++ struct S and a function makeS which creates an instance of S and assigns it to a shared pointer p. Here is a self-contained running example: #include <iostream> #include…