27.05.2012 04:14, William S Fulton пишет: > I can't replicate this bug with 2.0.6, you are going to have to > provide a test case. swig-2.0.5 introduced a regression which was > fixed in 2.0.7 - incorrect typemaps for templates were being used in > conjunction with typedef. Please try 2.0.7 and report back if fixed. > > William 2.0.7 shows the errors too. The minimal test case is attached. Run: swig -python -c++ test.i
If to use %template(StrPair) std::pair<std::string, std::string>; instead of "using std::pair", swig executes fine. I didn't test the generated code though. -- Best regards, Alexey "DarthGandalf" Sokolov
%module test %include <stl.i> using std::pair; %template(StrPair) pair<std::string, std::string>;
signature.asc
Description: OpenPGP digital signature