Skip to content

Commit

Permalink
Update utils.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark-Rich authored Oct 17, 2019
1 parent 5c43d17 commit 856e495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/common/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ int json2retrieval_item(Json::Value& json_item, RetrievalItem& retrieval_item);
typedef std::unordered_map<std::string, RetrievalItem> hashmap_str2retrieval_item;
int str2retrieval_item_load(const char* dict_file, hashmap_str2retrieval_item& dict_map);

// 读取配置文件,模板函数形式,哥策略模块均可使用
// 读取配置文件,模板函数形式,各策略模块均可使用
template<typename T> int load_config_from_file(const std::string& filename, T& param){
int file_descriptor = open(filename.c_str(), O_RDONLY);
if (file_descriptor == -1){
Expand Down

0 comments on commit 856e495

Please sign in to comment.