Add support for slicing steps to Python STL wrappers (positive step only atm - these work the same as other Python sequences such as list)

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-01-20 21:14:03 +00:00
commit 1b47ddf8f0
4 changed files with 178 additions and 47 deletions

View file

@ -465,6 +465,7 @@ CPP_STD_TEST_CASES += \
director_string \
ignore_template_constructor \
li_std_combinations \
li_std_containers_int \
li_std_deque \
li_std_except \
li_std_map \

View file

@ -0,0 +1,12 @@
%module li_std_containers_int
//
// Test containers of type int
//
%include std_vector.i
%include std_list.i
%template(vector_int) std::vector<int>;
%template(list_int) std::list<int>;