Replaced boost::function with std::function