diff options
author | Matt Derksen <v2cibmd@us.ibm.com> | 2016-05-27 16:32:41 -0500 |
---|---|---|
committer | Bill Hoffa <wghoffa@us.ibm.com> | 2016-06-02 09:23:52 -0500 |
commit | 3ddbcbd4b81296fa5524331f5313138d1c45d305 (patch) | |
tree | c8f3fccea92e4913e2ee68295f9aefe21f63cd52 /src/include/util | |
parent | 5c59bb5b9c89a173c6771d4db84abb53f4615d93 (diff) | |
download | talos-hostboot-3ddbcbd4b81296fa5524331f5313138d1c45d305.tar.gz talos-hostboot-3ddbcbd4b81296fa5524331f5313138d1c45d305.zip |
Overloaded != operator for shared_ptr.
Also updated cxxtests to make them pass.
Change-Id: I444a9c6c60261755db55fffbed66c92f93965c50
RTC:153697
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25138
Tested-by: Jenkins Server
Tested-by: FSP CI Jenkins
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: A. P. Williams III <iawillia@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/util')
-rw-r--r-- | src/include/util/impl/shared_ptr.H | 5 |
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 3be41e0ce..08cb6d044 100644 --- a/src/include/util/impl/shared_ptr.H +++ b/src/include/util/impl/shared_ptr.H @@ -83,6 +83,11 @@ namespace std return (pointer == r.pointer); } + bool operator!=(const shared_ptr &r) const + { + return (pointer != r.pointer); + } + shared_ptr& operator=(const shared_ptr& r) { _cleanup(); |