Add support for initializer lists to config and the unordered containers.

[SVN r50118]
This commit is contained in:
Daniel James
2008-12-04 21:30:19 +00:00
parent c1e9a6ac59
commit fe3873b28f
5 changed files with 101 additions and 0 deletions
+11
View File
@@ -288,6 +288,17 @@ UNORDERED_TEST(map_constructor_test,
((test_map)(test_multimap))
)
#if !defined(BOOST_NO_INITIALIZER_LISTS)
UNORDERED_AUTO_TEST(test_initializer_list) {
std::cerr<<"Initializer List Tests\n";
boost::unordered_set<int> x1 = { 2, 10, 45, -5 };
BOOST_CHECK(x1.find(10) != x1.end());
BOOST_CHECK(x1.find(46) == x1.end());
}
#endif
}
RUN_TESTS()