Boost logo

Boost-Commit :

From: jefffaust_at_[hidden]
Date: 2007-05-31 19:46:20


Author: jefffaust
Date: 2007-05-31 19:46:19 EDT (Thu, 31 May 2007)
New Revision: 4408
URL: http://svn.boost.org/trac/boost/changeset/4408

Log:
Fix tests to look at iterator, not container

Text files modified:
   sandbox/explore/libs/explore/test/is_assoc_iter.cpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: sandbox/explore/libs/explore/test/is_assoc_iter.cpp
==============================================================================
--- sandbox/explore/libs/explore/test/is_assoc_iter.cpp (original)
+++ sandbox/explore/libs/explore/test/is_assoc_iter.cpp 2007-05-31 19:46:19 EDT (Thu, 31 May 2007)
@@ -19,13 +19,13 @@
 
 BOOST_AUTO_TEST_CASE( is_assoc_iter_test )
 {
- bool mapHasAssocIter = explore::is_assoc_iter<std::map<int, double> >::type();
+ bool mapHasAssocIter = explore::is_assoc_iter<std::map<int, double>::iterator>::type();
     BOOST_CHECK(mapHasAssocIter);
 
- bool multimapHasAssocIter = explore::is_assoc_iter<std::multimap<std::string, bool> >::type();
+ bool multimapHasAssocIter = explore::is_assoc_iter<std::multimap<std::string, bool>::iterator>::type();
     BOOST_CHECK(multimapHasAssocIter);
 
- bool vectorHasAssocIter = explore::is_assoc_iter<std::vector<double> >::type();
+ bool vectorHasAssocIter = explore::is_assoc_iter<std::vector<double>::iterator>::type();
     BOOST_CHECK(!vectorHasAssocIter);
 
     bool pointerHasAssocIter = explore::is_assoc_iter<int*>::type();
@@ -34,6 +34,6 @@
     bool pairHasAssocIter = explore::is_assoc_iter<std::pair<int, double> >::type();
     BOOST_CHECK(!pairHasAssocIter);
 
- bool listOfPairHasAssocIter = explore::is_assoc_iter<std::list<std::pair<int, double> > >::type();
+ bool listOfPairHasAssocIter = explore::is_assoc_iter<std::list<std::pair<int, double> >::iterator >::type();
     BOOST_CHECK(!listOfPairHasAssocIter);
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk