I need to compile a bind
function in a Posix embedded, and can't use boost::bind
or std::bind
.
So I want to split the function:
threadReducer.reduce(boost::bind(&DepthMap::observeDepthRow, this, _1, _2, _3), 3, height-3, 10);
where the function observeDepthRow:
void DepthMap::observeDepthRow(int yMin, int yMax, RunningStats* stats)
and the function reduce:
void IndexThread::reduce(boost::function<void(int,int,RunningStats*)> callPerIndex, int first, int end, int stepSize = 0)
Plz, help me split the function, I am not good at C++