compatiable with -std=c++0x

This commit is contained in:
wyy 2014-08-15 22:09:21 +08:00
parent 9571a4d0d5
commit 40eb40288d
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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);