diff options
| author | Lily <47812810+LilyWangL@users.noreply.github.com> | 2020-11-04 15:10:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-03 23:10:51 -0800 |
| commit | 74ae197d7b333d9e2c19a058f3c88aabffdfdff4 (patch) | |
| tree | b2d7736f08f89264ccdd64d8048918023064bd38 /ports/kenlm/fix-const-overloaded.patch | |
| parent | 5c36967f365db6daf07a6e3d192814f6b9d6104c (diff) | |
| download | vcpkg-74ae197d7b333d9e2c19a058f3c88aabffdfdff4.tar.gz vcpkg-74ae197d7b333d9e2c19a058f3c88aabffdfdff4.zip | |
[kenlm, pdal] Fix const overload on Visual Studio 2019 version 16.8 (#14382)
Diffstat (limited to 'ports/kenlm/fix-const-overloaded.patch')
| -rw-r--r-- | ports/kenlm/fix-const-overloaded.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/kenlm/fix-const-overloaded.patch b/ports/kenlm/fix-const-overloaded.patch new file mode 100644 index 000000000..2a77b335f --- /dev/null +++ b/ports/kenlm/fix-const-overloaded.patch @@ -0,0 +1,14 @@ +diff --git a/util/proxy_iterator.hh b/util/proxy_iterator.hh +index 8aa697b..9de2663 100644 +--- a/util/proxy_iterator.hh ++++ b/util/proxy_iterator.hh +@@ -77,8 +77,7 @@ template <class Proxy> class ProxyIterator { + + std::ptrdiff_t operator-(const S &other) const { return I() - other.I(); } + +- Proxy operator*() { return p_; } +- const Proxy operator*() const { return p_; } ++ Proxy operator*() const { return p_; } + Proxy *operator->() { return &p_; } + const Proxy *operator->() const { return &p_; } + Proxy operator[](std::ptrdiff_t amount) const { return *(*this + amount); } |
