Skip to content

Commit

Permalink
Merge pull request #47 from EXP-code/FixIteratorAdvance
Browse files Browse the repository at this point in the history
Implementation of std::advance with endpoint checking
  • Loading branch information
michael-petersen authored Sep 29, 2023
2 parents 9a12d9b + cc2df45 commit 1d9e8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coefs/expMSSA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ namespace MSSA {
size_t map_size = mean.size();

auto u = mean.begin();
std::advance(u, thread_num);
for (int i=0; i<thread_num and u!=mean.end(); i++) u++;

for (int q=thread_num; q<map_size; q+=thread_count) {

Expand Down

0 comments on commit 1d9e8bc

Please sign in to comment.