Update of /cvsroot/boost/boost/libs/spirit/phoenix/test/container
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17205/container
Modified Files:
Tag: SPIRIT_RC_1_8_5
container_tests.hpp
Log Message:
removes a quirk that caused the multimap insertion test to fail with libstdc++
Index: container_tests.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/spirit/phoenix/test/container/Attic/container_tests.hpp,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- container_tests.hpp 11 Oct 2006 09:46:21 -0000 1.1.2.1
+++ container_tests.hpp 31 Jan 2007 12:41:19 -0000 1.1.2.2
@@ -461,13 +461,14 @@
typedef std::multimap<int, int> Multimap;
Multimap::value_type const value = *c.begin();
+ Multimap::size_type prev_size = c.size();
Multimap::iterator c_begin = c.begin();
// wrapper for
// iterator insert(iterator where, const value_type& val);
Multimap::iterator it =
phx::insert(arg1, arg2, arg3)(c, c_begin, value);
- if (test(it != c.begin() || *it != *(++it))) {
+ if (test(c.size() == prev_size || it->first != value.first)) {
cerr << "Failed " << typeid(Multimap).name()
<< " test_multimap_insert 1\n";
return;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs