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