2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-28 07:22:31 +00:00

added test for vector<string>

[SVN r34374]
This commit is contained in:
Joel de Guzman
2006-06-22 13:33:46 +00:00
parent d3c474b295
commit cf68da0b19
2 changed files with 11 additions and 0 deletions

View File

@@ -53,5 +53,10 @@ BOOST_PYTHON_MODULE(vector_indexing_suite_ext)
class_<std::vector<bool> >("BoolVec")
.def(vector_indexing_suite<std::vector<bool> >())
;
// vector of strings
class_<std::vector<std::string> >("StringVec")
.def(vector_indexing_suite<std::vector<std::string> >())
;
}

View File

@@ -321,6 +321,12 @@ e
>>> print_xvec(v)
[ a b c d e f g h i j ]
#####################################################################
# vector of strings
#####################################################################
>>> sv = StringVec()
>>> sv.append('a')
#####################################################################
# END....
#####################################################################