[refactor] Replace boost::function with std::function (#5700)

Replace boost::function with std::function
This commit is contained in:
Zhengguo Yang
2021-05-09 22:00:48 +08:00
committed by GitHub
parent 11cce06962
commit 98e80aa65e
44 changed files with 182 additions and 174 deletions

View File

@ -18,6 +18,7 @@
#include "util/string_util.h"
#include "gutil/strings/split.h"
#include "util/hash_util.hpp"
namespace doris {
@ -25,7 +26,7 @@ size_t hash_of_path(const std::string& identifier, const std::string& path) {
size_t hash = std::hash<std::string>()(identifier);
std::vector<std::string> path_parts = strings::Split(path, "/", strings::SkipWhitespace());
for (auto& part : path_parts) {
boost::hash_combine<std::string>(hash, part);
HashUtil::hash_combine<std::string>(hash, part);
}
return hash;
}