diff options
author | ksmt4699 | 2019-10-10 20:52:40 +0900 |
---|---|---|
committer | ksmt4699 | 2019-10-10 20:52:40 +0900 |
commit | 11ffd243ca5a3d2f54cb4aefe1b6f15cd5ed9abe (patch) | |
tree | b870729d57433c3ed3644e6c3c7db51492ca6c20 /fix-for-gcc81.patch | |
download | aur-11ffd243ca5a3d2f54cb4aefe1b6f15cd5ed9abe.tar.gz |
First commit
Diffstat (limited to 'fix-for-gcc81.patch')
-rw-r--r-- | fix-for-gcc81.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fix-for-gcc81.patch b/fix-for-gcc81.patch new file mode 100644 index 000000000000..e47336dc21ca --- /dev/null +++ b/fix-for-gcc81.patch @@ -0,0 +1,22 @@ +diff --git a/src/prediction/zero_query_dict.h b/src/prediction/zero_query_dict.h +index c11aa24d..4eece4eb 100644 +--- a/src/prediction/zero_query_dict.h ++++ b/src/prediction/zero_query_dict.h +@@ -132,6 +132,17 @@ class ZeroQueryDict { + return tmp; + } + ++ iterator &operator--() { ++ ptr_ -= kTokenByteSize; ++ return *this; ++ } ++ ++ iterator operator--(int) { ++ const iterator tmp(ptr_, string_array_); ++ ptr_ -= kTokenByteSize; ++ return tmp; ++ } ++ + iterator &operator+=(ptrdiff_t n) { + ptr_ += n * kTokenByteSize; + return *this; |