/tags/rel-1-3-26/SWIG/Examples/test-suite/template_type_namespace.i

# · Swig · 14 lines · 10 code · 4 blank · 0 comment · 0 complexity · c980d01178fcbf128d5300a4f057f65a MD5 · raw file

  1. %module template_type_namespace
  2. %warnfilter(801) std::vector<std::string>; // Ruby, wrong class name
  3. %include std_string.i
  4. %include std_vector.i
  5. %template(string_vector) std::vector<std::string>;
  6. %inline %{
  7. std::vector<std::string> foo() {
  8. return std::vector<std::string>(1,"foo");
  9. }
  10. %}