Skip to content

Commit

Permalink
MSVC doesn't like const Proxy operator*() const.
Browse files Browse the repository at this point in the history
Fixes kpu#308
  • Loading branch information
kpu committed Nov 4, 2020
1 parent a6e130e commit d70e284
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/proxy_iterator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit d70e284

Please sign in to comment.