C++11: [skip ci] replace deprecated function std::mem_fun_ref with lambda functions
This commit is contained in:
@@ -208,7 +208,9 @@ void MeshBuilder::RemoveUnreferencedPoints()
|
||||
_meshKernel._aclPointArray[it->_aulPoints[i]].ResetInvalid();
|
||||
}
|
||||
|
||||
unsigned long uValidPts = std::count_if(_meshKernel._aclPointArray.begin(), _meshKernel._aclPointArray.end(), std::mem_fun_ref(&MeshPoint::IsValid));
|
||||
unsigned long uValidPts = std::count_if(_meshKernel._aclPointArray.begin(),
|
||||
_meshKernel._aclPointArray.end(),
|
||||
[](const MeshPoint& p) { return p.IsValid(); });
|
||||
if ( uValidPts < _meshKernel.CountPoints() )
|
||||
_meshKernel.RemoveInvalids();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user