the following (very) simple interface:
%include std_string.i
%include std_sstream.i
produce invalid c++ code, where basic_string is not prefixed with "std::".
Including the 2 libs in reversed order works without any problem:
%include std_sstream.i
%include std_string.i
Reproduced on mac os and linux, with python and swig 1.3.31
Still occurs for current SVN trunk, with both python and ruby.
Still present in git master for python.
With
-ruby
I now get an error for the first case:The second case doesn't give a SWIG error and uses
std::basic_string
everywhere.https://github.com/swig/swig/issues/1171 may be related.