aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/shared-ptr.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/shared-ptr.hxx b/odb/shared-ptr.hxx
index ee56792..7290a00 100644
--- a/odb/shared-ptr.hxx
+++ b/odb/shared-ptr.hxx
@@ -140,6 +140,20 @@ namespace odb
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 // ODB_SHARED_PTR_HXX