mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
build: eliminate calls of removed functionality from C++17
Most part is deprecated since C++11
This commit is contained in:
@@ -564,7 +564,12 @@ namespace
|
||||
|
||||
if (compactResult)
|
||||
{
|
||||
#ifdef CV_CXX11
|
||||
std::vector< std::vector<DMatch> >::iterator new_end = std::remove_if(matches.begin(), matches.end(),
|
||||
[](const std::vector<DMatch>& e)->bool { return e.empty(); });
|
||||
#else
|
||||
std::vector< std::vector<DMatch> >::iterator new_end = std::remove_if(matches.begin(), matches.end(), std::mem_fun_ref(&std::vector<DMatch>::empty));
|
||||
#endif
|
||||
matches.erase(new_end, matches.end());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user