From e748d921fd56644ec41fe58a578b4df3ed1874bb Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 13 Apr 2011 09:32:18 -0700 Subject: [PATCH] refcnt: Inline comparison functions --- src/base/refcnt.hh | 12 ++++++------ 1 file 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 -bool operator==(const RefCountingPtr &l, const RefCountingPtr &r) +inline bool operator==(const RefCountingPtr &l, const RefCountingPtr &r) { return l.get() == r.get(); } template -bool operator==(const RefCountingPtr &l, const T *r) +inline bool operator==(const RefCountingPtr &l, const T *r) { return l.get() == r; } template -bool operator==(const T *l, const RefCountingPtr &r) +inline bool operator==(const T *l, const RefCountingPtr &r) { return l == r.get(); } template -bool operator!=(const RefCountingPtr &l, const RefCountingPtr &r) +inline bool operator!=(const RefCountingPtr &l, const RefCountingPtr &r) { return l.get() != r.get(); } template -bool operator!=(const RefCountingPtr &l, const T *r) +inline bool operator!=(const RefCountingPtr &l, const T *r) { return l.get() != r; } template -bool operator!=(const T *l, const RefCountingPtr &r) +inline bool operator!=(const T *l, const RefCountingPtr &r) { return l != r.get(); } #endif // __BASE_REFCNT_HH__ -- 2.30.2