From cc2df45fc05f7db65fb7e3ca1ace1d654d7247b4 Mon Sep 17 00:00:00 2001 From: "Martin D. Weinberg" Date: Fri, 29 Sep 2023 14:57:20 -0400 Subject: [PATCH] Implementation of std::advance with endpoint checking --- coefs/expMSSA.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coefs/expMSSA.cc b/coefs/expMSSA.cc index 60294c141..77d80985c 100644 --- a/coefs/expMSSA.cc +++ b/coefs/expMSSA.cc @@ -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