Hello ! I have a library with a C++ function I try to interface with SAGE, and two classes are defined :
CoinPackedVector and CoinPackedVectorBase I only use CoinPackedVector, but one of its functions is defined in the header files as appendRow( CoinPackedVectorBase ) CoinPackedVectorBase being an abstract class of which CoinPackedVector in a subclass. The thing is that Cython does not know that, and it believes I am using incorrectly the function by giving it an argument of incorrect type. How can I make it think otherwise ? On another point : how is it possible to call a function which want as an argument a reference to an instance of a class ? I only have pointers to instances in my Cython code, how can I build a reference from that ? Thank you ! Nathann --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---