From a2f74ee168abdaae50205651fff5d04c5d062b89 Mon Sep 17 00:00:00 2001 From: khizmax Date: Sun, 7 Aug 2016 11:21:49 +0300 Subject: [PATCH] Fixed set iterating stress test --- test/stress/set/iteration/set_iteration.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.34.1