projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a0dceb
)
Fixed set iterating stress test
author
khizmax
<libcds.dev@gmail.com>
Sun, 7 Aug 2016 08:21:49 +0000
(11:21 +0300)
committer
khizmax
<libcds.dev@gmail.com>
Sun, 7 Aug 2016 08:21:49 +0000
(11:21 +0300)
test/stress/set/iteration/set_iteration.h
patch
|
blob
|
history
diff --git
a/test/stress/set/iteration/set_iteration.h
b/test/stress/set/iteration/set_iteration.h
index
decf002
..
5cb8d1e
100644
(file)
--- 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<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;
}