struct f_setBlend : public unary_function { void operator () (string & x) { return; } }; vector & vConstraints = pHAnim->getConstraints(); for_each (vConstraints.begin(), vConstraints.end(), f_setBlend() ); Error Message: error: no matching function for call to 'for_each(__gnu_cxx::__normal_iterator, std::allocator >*, std::vector, std::allocator >, std::allocator, std::allocator > > > >, __gnu_cxx::__normal_iterator, std::allocator >*, std::vector, std::allocator >, std::allocator, std::allocator > > > >, H::HAnimator::blendOutAllAnimationsByConstraint(std::string, float)::f_setBlend)'