summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_key.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-06-13 15:31:54 +0800
committerPeng Wu <alexepico@gmail.com>2016-06-13 15:31:54 +0800
commit3b07d6126db7834386bf1aab160a3642340730ef (patch)
tree09c5ab1936d887220d44a8c241035771f9db9366 /src/storage/chewing_key.h
parent5e45e62467c4d55a724c6c9058653a88fe61f21c (diff)
downloadlibpinyin-3b07d6126db7834386bf1aab160a3642340730ef.tar.gz
libpinyin-3b07d6126db7834386bf1aab160a3642340730ef.tar.xz
libpinyin-3b07d6126db7834386bf1aab160a3642340730ef.zip
fixes compile
Diffstat (limited to 'src/storage/chewing_key.h')
-rw-r--r--src/storage/chewing_key.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/storage/chewing_key.h b/src/storage/chewing_key.h
index d6bcc19..3229cae 100644
--- a/src/storage/chewing_key.h
+++ b/src/storage/chewing_key.h
@@ -87,6 +87,10 @@ static inline bool operator == (ChewingKey lhs, ChewingKey rhs) {
return true;
}
+static inline bool operator != (ChewingKey lhs, ChewingKey rhs) {
+ return !(lhs == rhs);
+}
+
struct _ChewingKeyRest
{
/* Note: the table index is removed,