+ 1

Siwg python and C++ class object pointer

Hi I am having C++ code which I want to use in python. For this, I have used swig which generates the python binding. I am ok with this but how to have pointer in python? In other words , class object I can create in python. My one of c++ function takes class object pointer as an argument to a function. How to create pointer in python so that I can use the method?

16th Oct 2024, 8:38 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
2 Answers
0
Cant use c++ with python cause they different languges dum dum
27th Dec 2024, 6:02 PM
Bob Balinski
0
It is ok to have c++ code that has pointer as function arguments. It works for swig to generate proper wrapper
27th Dec 2024, 9:21 PM
Ketan Lalcheta
Ketan Lalcheta - avatar