aboutsummaryrefslogtreecommitdiff
path: root/cutl/shared-ptr.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'cutl/shared-ptr.hxx')
-rw-r--r--cutl/shared-ptr.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/cutl/shared-ptr.hxx b/cutl/shared-ptr.hxx
index de85447..702af29 100644
--- a/cutl/shared-ptr.hxx
+++ b/cutl/shared-ptr.hxx
@@ -140,6 +140,20 @@ namespace cutl
X* x_;
};
+
+ template <typename X, typename Y>
+ inline bool
+ operator== (const shared_ptr<X>& x, const shared_ptr<Y>& y)
+ {
+ return x.get () == y.get ();
+ }
+
+ template <typename X, typename Y>
+ inline bool
+ operator!= (const shared_ptr<X>& x, const shared_ptr<Y>& y)
+ {
+ return x.get () != y.get ();
+ }
}
#endif // CUTL_SHARED_PTR_HXX