From 5038a7ca597b35669d24b39c96daff8a4f762462 Mon Sep 17 00:00:00 2001 From: Pavel Govyadinov Date: Tue, 15 Aug 2017 10:49:16 -0500 Subject: [PATCH] commited parsing fixes --- stim/biomodels/centerline.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stim/biomodels/centerline.h b/stim/biomodels/centerline.h index 90ba645..b4b3d3f 100644 --- a/stim/biomodels/centerline.h +++ b/stim/biomodels/centerline.h @@ -330,8 +330,10 @@ public: #endif } else { - auto smallest = std::min_element(dist.begin(), dist.end()); - auto i = std::distance(dist.begin(), smallest); // find the index of min-distance in distance list + // auto smallest = std::min_element(dist.begin(), dist.end()); + unsigned int smallest = std::min_element(dist.begin(), dist.end()); + // auto i = std::distance(dist.begin(), smallest); // find the index of min-distance in distance list + unsigned int i = std::distance(dist.begin(), smallest); // find the index of min-distance in distance list // stitch position in c1 and c2 int id1 = index[i]; -- libgit2 0.21.4