diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/base/refcnt.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/base/refcnt.hh b/src/base/refcnt.hh index 1c10cc0ea..df15294d1 100644 --- a/src/base/refcnt.hh +++ b/src/base/refcnt.hh @@ -97,27 +97,27 @@ class RefCountingPtr }; template<class T> -bool operator==(const RefCountingPtr<T> &l, const RefCountingPtr<T> &r) +inline bool operator==(const RefCountingPtr<T> &l, const RefCountingPtr<T> &r) { return l.get() == r.get(); } template<class T> -bool operator==(const RefCountingPtr<T> &l, const T *r) +inline bool operator==(const RefCountingPtr<T> &l, const T *r) { return l.get() == r; } template<class T> -bool operator==(const T *l, const RefCountingPtr<T> &r) +inline bool operator==(const T *l, const RefCountingPtr<T> &r) { return l == r.get(); } template<class T> -bool operator!=(const RefCountingPtr<T> &l, const RefCountingPtr<T> &r) +inline bool operator!=(const RefCountingPtr<T> &l, const RefCountingPtr<T> &r) { return l.get() != r.get(); } template<class T> -bool operator!=(const RefCountingPtr<T> &l, const T *r) +inline bool operator!=(const RefCountingPtr<T> &l, const T *r) { return l.get() != r; } template<class T> -bool operator!=(const T *l, const RefCountingPtr<T> &r) +inline bool operator!=(const T *l, const RefCountingPtr<T> &r) { return l != r.get(); } #endif // __BASE_REFCNT_HH__ |