[Cython] C++ issue
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Oct 24 06:28:50 CEST 2008
Jackson Hoy Loper wrote:
>>Alas, not strictly true. STL containers don't return pointers to
>>iterators, they return iterators themselves.
I'm not quite following that. I thought the problem
was dealing with types such that the C++ code
Foo x;
x = something;
won't work because Foo requires initialization arguments.
However, it seems to me that wherever you could do
Foo x(args);
you should equally be able to do
Foo *x;
x = new Foo(args);
...
delete x;
However I'm not all that familiar with the STL, so I may
have misunderstood what the problem actually is.
--
Greg
More information about the Cython-dev
mailing list