%module template_type_namespace %warnfilter(SWIGWARN_RUBY_WRONG_NAME) std::vector; // Ruby, wrong class name %include std_string.i %include std_vector.i %template(string_vector) std::vector; %inline %{ std::vector foo() { return std::vector(1,"foo"); } %}