early-access version 2853
This commit is contained in:
14
externals/vcpkg/ports/kenlm/fix-const-overloaded.patch
vendored
Executable file
14
externals/vcpkg/ports/kenlm/fix-const-overloaded.patch
vendored
Executable file
@@ -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); }
|
Reference in New Issue
Block a user