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 decf002d7f9ae182776c7cbb8b3cae62cbf731c1..5cb8d1e86301a5f81f8bb63437923eb97a3e88dc 100644 (file)
@@ -405,7 +405,10 @@ namespace set {
                 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;
                     }