Problem using swig

  • Thread starter Alfonso Cepeda Caballos,,,
  • Start date
A

Alfonso Cepeda Caballos,,,

Hello

I've created a class on C++ with a virtual function. I've
compiled that class and created on python a derivated class
from that.

class clpy(clc):
  def func1:
  
with clc the class on c++ and func1 the virtual function on
the clc class.

If I use on python the func1 function it's executed the python
defined function (clpy.func1), and if I use the func1 function
on c++ it's executed the clc.func1 function.

The problem is that I'd like on another function of clc execute
the overloaded function of python. So on clc I use a
this->func1(); but it's executed the clc.func1 function and not
clpy.func1 function.

Is there any way to do that?
I'm using swig 1.3

Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top