removed the unnecessary friend declarator of std::function