From: khizmax Date: Sun, 7 Aug 2016 08:21:49 +0000 (+0300) Subject: Fixed set iterating stress test X-Git-Tag: v2.2.0~142 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a2f74ee168abdaae50205651fff5d04c5d062b89;p=libcds.git Fixed set iterating stress test --- diff --git a/test/stress/set/iteration/set_iteration.h b/test/stress/set/iteration/set_iteration.h index decf002d..5cb8d1e8 100644 --- a/test/stress/set/iteration/set_iteration.h +++ b/test/stress/set/iteration/set_iteration.h @@ -405,7 +405,10 @@ namespace set { Set_Iteration& fixture = pool().template fixture(); 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; }