Fixed set iterating stress test
authorkhizmax <libcds.dev@gmail.com>
Sun, 7 Aug 2016 08:21:49 +0000 (11:21 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sun, 7 Aug 2016 08:21:49 +0000 (11:21 +0300)
test/stress/set/iteration/set_iteration.h

index decf002..5cb8d1e 100644 (file)
@@ -405,7 +405,10 @@ namespace set {
                 Set_Iteration& fixture = pool().template fixture<Set_Iteration>();
                 while ( !fixture.all_modifiers_done() ) {
                     ++m_nPassCount;
                 Set_Iteration& fixture = pool().template fixture<Set_Iteration>();
                 while ( !fixture.all_modifiers_done() ) {
                     ++m_nPassCount;
-                    for ( auto it = rSet.begin(); it != rSet.end(); ++it ) {
+                    typename Set::iterator it;
+                    typename Set::iterator itEnd;
+                    itEnd = rSet.end();
+                    for ( it = rSet.begin(); it != itEnd; ++it ) {
                         it->val.hash = CityHash64( it->key.c_str(), it->key.length());
                         ++m_nVisitCount;
                     }
                         it->val.hash = CityHash64( it->key.c_str(), it->key.length());
                         ++m_nVisitCount;
                     }