[refactor] Replace boost::function with std::function (#5700)
Replace boost::function with std::function
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user