mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
compatiable with -std=c++0x
This commit is contained in:
parent
9571a4d0d5
commit
40eb40288d
@ -6,6 +6,7 @@
|
||||
2. 在`1.`的基础上,使用`Limonp/LocalVector.hpp`作为`Unicode`的类型,约提高性能 `13%`。
|
||||
3. 使 `cjserver` 支持用户自定义词典,通过在 `conf/server.conf` 里面配置 `user_dict_path` 来实现。
|
||||
4. 修复 `MPSegmentor` 切词时,当句子中含有特殊字符时,切词结果不完整的问题。
|
||||
5. 修改 `-std=c++0x` 或者 `-std=c++11` 时编译失败的问题。
|
||||
|
||||
## v2.4.1
|
||||
|
||||
|
@ -93,7 +93,7 @@ namespace CppJieba
|
||||
segmentChars[i].uniCh = *(begin + i);
|
||||
segmentChars[i].dag.clear();
|
||||
_dictTrie.find(begin + i, end, segmentChars[i].dag, i);
|
||||
segmentChars[i].dag.insert(make_pair<DagType::key_type, DagType::mapped_type>(i, NULL));
|
||||
segmentChars[i].dag.insert(pair<DagType::key_type, DagType::mapped_type>(i, NULL));
|
||||
}
|
||||
|
||||
_calcDP(segmentChars);
|
||||
|
Loading…
x
Reference in New Issue
Block a user