diff options
author | Murray Cumming <murrayc@murrayc.com> | 2011-09-06 09:12:18 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2011-09-06 09:12:18 +0200 |
commit | a468dba079f998cd26d9d78ff4214754db9c799f (patch) | |
tree | 714687895c07114d51a03ed9c2489969187c3ff0 /tests | |
parent | 3a66ab3c75e5f0bcb7aa67d1a373e829131511f3 (diff) | |
download | glibmm-a468dba079f998cd26d9d78ff4214754db9c799f.tar.gz |
Missing parts of the last commit
Diffstat (limited to 'tests')
-rw-r--r-- | tests/glibmm_variant/main.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/glibmm_variant/main.cc b/tests/glibmm_variant/main.cc index 816406e0..f8de65df 100644 --- a/tests/glibmm_variant/main.cc +++ b/tests/glibmm_variant/main.cc @@ -14,6 +14,7 @@ int main(int, char**) { Glib::init(); + //vector<int>: const int int_list[] = {1, 2, 3, 4, 5, 6, 7, 8}; std::vector<int> int_vector(int_list, @@ -46,6 +47,15 @@ int main(int, char**) integers_variant.get_child(index) << '.' << std::endl; ostr << std::endl; + + + //vector<std::string>: + std::vector<std::string> vec_strings; + vec_strings.push_back("a"); + Glib::Variant<std::vector<std::string> > variant_vec_strings = + Glib::Variant<std::vector<std::string> >::create(vec_strings); + + //Dict: typedef std::pair<Glib::ustring, Glib::ustring> TypeDictEntry; |