提升兼容性,修复在某些特定环境下的编译错误问题。

This commit is contained in:
yanyiwu 2015-06-08 15:01:59 +08:00
parent 67cc5941be
commit e3c57c0ba1
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# CppJieba ChangeLog
## v3.0.1(untagged)
1. 提升兼容性,修复在某些特定环境下的编译错误问题。
## v3.0.0
1. 使得 QuerySegment 支持自定义词典(可选参数)。

View File

@ -98,7 +98,7 @@ class Trie {
Unicode::value_type ch = *(begin + i);
res[i].uniCh = ch;
assert(res[i].dag.empty());
res[i].dag.push_back(pair<vector<Unicode >::size_type, const DictUnit* >(i, NULL));
res[i].dag.push_back(pair<vector<Unicode >::size_type, const DictUnit* >(i, (const DictUnit*)NULL));
bool flag = false;
// rollback