From: Nathan Binkert Date: Wed, 13 Apr 2011 16:32:18 +0000 (-0700) Subject: refcnt: Inline comparison functions X-Git-Tag: stable_2012_02_02~404 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e748d921fd56644ec41fe58a578b4df3ed1874bb;p=gem5.git refcnt: Inline comparison functions --- 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__