From: Bill C. <ll...@co...> - 2005-11-14 00:12:37
|
Zha...@ve... wrote, On 11/13/05 14:09: [...] > The target language is Python. Basically I just tried to create the Python > extension module for the vector container in the C++ STL, for examples > vector<pair<int,int> > and vector<vector<int> >, etc. Below is part of the > Swig interface file is as follows: > > %include vector > %include std.i > > %template vecvecint vector<vector<int> > > %template vecpairint vector<pair<int,int> > the simple answer is, "don't do that!". use the provided std_vector.i and std_pair.i. cheers, /lib -- /lib BillClarke PostdoctoralFellow CompSci ANU cs.anu.edu.au/CC-NUMA http://llib.cjb.net ll...@co... tel:+61-2-6125x5687 fax:x0010 PGPid:B381EE7DB7D3E58F17248C672E2DA124ADADF444 GNU unix LaTeX XPilot Buffy DrWho Goodies StarTrek XFiles Origami SML SMP MPI mozilla tcsh Asimov Bear Clarke Donaldson Volleyball Ultimate Cricket emacs C++ X Jordan Kay Lackey Martin Stasheff DeepPurple H&C KLF Queen PinkFloyd |