Skip to content

Commit

Permalink
using auto
Browse files Browse the repository at this point in the history
  • Loading branch information
simogasp committed Jun 11, 2024
1 parent 17e256a commit cfe3585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cctag/Identification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ std::pair<float,float> convImageCut(const std::vector<float> & kernel, ImageCut
//cut.imgSignal() = output;

// Locate the maximum value.
std::vector<float>::iterator maxValueIt = std::max_element(output.begin(), output.end());
auto maxValueIt = std::max_element(output.begin(), output.end());
float itsLocation = (float) std::distance(output.begin(), maxValueIt);

//CCTAG_COUT_VAR2(*maxValueIt, itsLocation);
Expand Down

0 comments on commit cfe3585

Please sign in to comment.