[Cython] wrapping c++
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Wed Mar 5 13:53:35 CET 2008
>
> As for the return type of your at() function, have you tried declaring it
> as returning "int*" instead? What does Cython do in this case?
>
C++ references doesn't work that way, I don't think that would work. C++
code would look like this:
vector<int> v(10);
v.at(3) = 4;
If you declare the return type to be int* you simply have a problem...
Dag Sverre
More information about the Cython-dev
mailing list