boost::function replaced by std::function and friends.