diff --git a/src/base/refcnt.hh b/src/base/refcnt.hh index 64224ca7f3..b73183a1a1 100644 --- a/src/base/refcnt.hh +++ b/src/base/refcnt.hh @@ -109,7 +109,7 @@ bool operator==(const RefCountingPtr &l, const T *r) { return l.get() == r; } template -bool operator==(const T &l, const RefCountingPtr &r) +bool operator==(const T *l, const RefCountingPtr &r) { return l == r.get(); } template @@ -121,7 +121,7 @@ bool operator!=(const RefCountingPtr &l, const T *r) { return l.get() != r; } template -bool operator!=(const T &l, const RefCountingPtr &r) +bool operator!=(const T *l, const RefCountingPtr &r) { return l != r.get(); } #endif // __BASE_REFCNT_HH__