Commit 01c4088a authored by Mike Kremer's avatar Mike Kremer
Browse files

Use new functional header in OpenVolumeMeshHandle.hh.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@173 66977474-1d4b-4f09-8fe9-267525286df2
parent 22a01e1f
......@@ -45,7 +45,7 @@
#include <iostream>
#include <vector>
#include <tr1/functional>
#include <OpenVolumeMesh/System/FunctionalInclude.hh>
#include <algorithm>
namespace OpenVolumeMesh {
......@@ -109,7 +109,7 @@ class HEHandleCorrection {
public:
HEHandleCorrection(HalfEdgeHandle _thld) : thld_(_thld) {}
void correctVecValue(std::vector<HalfEdgeHandle>& _vec) {
std::for_each(_vec.begin(), _vec.end(), std::tr1::bind(&HEHandleCorrection::correctValue, this, std::tr1::placeholders::_1));
std::for_each(_vec.begin(), _vec.end(), fun::bind(&HEHandleCorrection::correctValue, this, fun::placeholders::_1));
}
void correctValue(HalfEdgeHandle& _h) {
if(_h > thld_) _h.idx(_h.idx() - 2);
......@@ -121,7 +121,7 @@ class HFHandleCorrection {
public:
HFHandleCorrection(HalfFaceHandle _thld) : thld_(_thld) {}
void correctVecValue(std::vector<HalfFaceHandle>& _vec) {
std::for_each(_vec.begin(), _vec.end(), std::tr1::bind(&HFHandleCorrection::correctValue, this, std::tr1::placeholders::_1));
std::for_each(_vec.begin(), _vec.end(), fun::bind(&HFHandleCorrection::correctValue, this, fun::placeholders::_1));
}
void correctValue(HalfFaceHandle& _h) {
if(_h > thld_) _h.idx(_h.idx() - 2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment