summaryrefslogtreecommitdiffstats
path: root/src/include/util
diff options
context:
space:
mode:
authorMatt Derksen <v2cibmd@us.ibm.com>2016-05-16 12:18:28 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2016-05-24 10:42:04 -0400
commitb76979b8c125bacdd428deed9bbcb5a6afdc7baf (patch)
treed84a70fbc7ba29e7704c05ba79d02fc21f235c34 /src/include/util
parentd36fdebd86df6f684aa9fecebf2008fd8715d697 (diff)
downloadtalos-hostboot-b76979b8c125bacdd428deed9bbcb5a6afdc7baf.tar.gz
talos-hostboot-b76979b8c125bacdd428deed9bbcb5a6afdc7baf.zip
Added equal comparison override for shared_ptr
Change-Id: I7a9358001bd7a99735fc52bb6b8af21be3df45a6 RTC:133837 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24605 Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/util')
-rw-r--r--src/include/util/impl/shared_ptr.H5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/util/impl/shared_ptr.H b/src/include/util/impl/shared_ptr.H
index 0740d430d..3be41e0ce 100644
--- a/src/include/util/impl/shared_ptr.H
+++ b/src/include/util/impl/shared_ptr.H
@@ -78,6 +78,11 @@ namespace std
~shared_ptr() { _cleanup(); }
+ bool operator==(const shared_ptr &r) const
+ {
+ return (pointer == r.pointer);
+ }
+
shared_ptr& operator=(const shared_ptr& r)
{
_cleanup();
OpenPOWER on IntegriCloud