From e3c57c0ba1d0e8fd7ca4ee76b0fcfc4e5945b74f Mon Sep 17 00:00:00 2001 From: yanyiwu Date: Mon, 8 Jun 2015 15:01:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=8D=87=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=9C=A8=E6=9F=90=E4=BA=9B=E7=89=B9?= =?UTF-8?q?=E5=AE=9A=E7=8E=AF=E5=A2=83=E4=B8=8B=E7=9A=84=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeLog.md | 4 ++++ src/Trie.hpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index bb58508..6919661 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,9 @@ # CppJieba ChangeLog +## v3.0.1(untagged) + +1. 提升兼容性,修复在某些特定环境下的编译错误问题。 + ## v3.0.0 1. 使得 QuerySegment 支持自定义词典(可选参数)。 diff --git a/src/Trie.hpp b/src/Trie.hpp index 8cc1176..7363d10 100644 --- a/src/Trie.hpp +++ b/src/Trie.hpp @@ -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::size_type, const DictUnit* >(i, NULL)); + res[i].dag.push_back(pair::size_type, const DictUnit* >(i, (const DictUnit*)NULL)); bool flag = false; // rollback