From: Schrodinger A. <bla...@sc...> - 2010-10-10 12:56:35
|
I fixed this using: std { specialize_std_vector(int64,PyLong_Check,PyLong_AsLongLong,PyLong_FromLongLong); specialize_std_vector(uint64,PyLong_Check,PyLong_AsUnsignedLongLong,PyLong_FromUnsignedLongLong); } Thanks for the responses. Blaine On 10/7/10 3:35 PM, Russell E. Owen wrote: > In article<4CA...@sc...>, > Blaine Bell<bla...@sc...> wrote: > > >> I have a "typedef unsigned long long uint64" set, and I want to pass a >> vector<uint64> to and from python to c++. I can create the vector, send >> it to c++, but when I get it back with values and look at the list, I >> get string values like this: >> ... >> > Have you tried: > %import "std_vector.i" > %template(VectorUInt64) std::vector<uint64>; > > -- Russell > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > |