Skip to content

nested loop confusion #7

@emillundh

Description

@emillundh

/home/emil/libCMT/CMT.cpp: In member function ‘void CMT::processFrame(cv::Mat)’:
/home/emil/libCMT/CMT.cpp:558:69: warning: name lookup of ‘i’ changed [enabled by default]
descriptorMatcher->match(selectedFeatures, features.row(i), matches);
^
/home/emil/libCMT/CMT.cpp:516:13: warning: matches this ‘i’ under ISO standard rules [enabled by default]
for(int i = 0; i < keypoints.size(); i++)
^
/home/emil/libCMT/CMT.cpp:527:17: warning: matches this ‘i’ under old rules [enabled by default]
for(int i = 0; i < matches.size(); i++)
^

Perhaps nicer to change loop variables to avoid this kind of warning?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions