autocxx icon indicating copy to clipboard operation
autocxx copied to clipboard

Support calling functions on derived types

Open adetaylor opened this issue 4 years ago • 3 comments

Follow on from #195. We need to make functions callable on derived C++ types.

adetaylor avatar Jan 15 '21 00:01 adetaylor

#592 might be a good first step here.

adetaylor avatar Jan 03 '22 01:01 adetaylor

The test case here should be duplicated to cover both virtual and non-virtual functions being callable on derived classes.

adetaylor avatar Jan 03 '22 01:01 adetaylor

Hi,

I'm actually struggling with this one currently (while bringing g2o to the rust world), and I've made some warcrime-level workarounds to call "mut self" methods on an instance. I'm not really looking for actual casts (even though that would be nice), so even duplicating the methods on the derived type would be great.

I'd love to help in the thinking part of #592 too, that would pretty much solve this issue for me.

badicsalex avatar Jun 06 '23 17:06 badicsalex