pb wrapping C++ operator

13 views
Skip to first unread message

20100.d...@gmail.com

unread,
Aug 3, 2016, 5:52:51 PM8/3/16
to cython-users
Hello,

I have a problem with wrapping of the following CPP class

class Integer {
    friend Integer operator+ (const Integer& a, long b)
    friend Integer operator+ (long a, const Integer& b)
};

Namely, I have no problem declaring the first overloading with

cdef extern from "my_header.h":
    cdef cppclass Integer:
        Integer operator+ (long)

However, I did not succeed in declaring the second overloading. Any clue?

Thanks,
Vincent
Reply all
Reply to author
Forward
0 new messages