Commit 5038a7ca597b35669d24b39c96daff8a4f762462

Authored by Pavel Govyadinov
1 parent 6aa276f6

commited parsing fixes

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
stim/biomodels/centerline.h
... ... @@ -330,8 +330,10 @@ public:
330 330 #endif
331 331 }
332 332 else {
333   - auto smallest = std::min_element(dist.begin(), dist.end());
334   - auto i = std::distance(dist.begin(), smallest); // find the index of min-distance in distance list
  333 + // auto smallest = std::min_element(dist.begin(), dist.end());
  334 + unsigned int smallest = std::min_element(dist.begin(), dist.end());
  335 + // auto i = std::distance(dist.begin(), smallest); // find the index of min-distance in distance list
  336 + unsigned int i = std::distance(dist.begin(), smallest); // find the index of min-distance in distance list
335 337  
336 338 // stitch position in c1 and c2
337 339 int id1 = index[i];
... ...