]> git.sesse.net Git - casparcg/blobdiff - common/memory/safe_ptr.h
2.0. - image_mixer: Fixed bug where amongst others mixing to alpha did not work.
[casparcg] / common / memory / safe_ptr.h
index f649f0e06c7f5efe82fef3c86d239bd350491f8b..e4269e69bd2166f96f984fb8287e930b77aafa7a 100644 (file)
@@ -154,6 +154,18 @@ bool operator==(const safe_ptr<T>& a, const safe_ptr<U>& b)  // noexcept
        return a.get() == b.get();\r
 }\r
 \r
+template<class T, class U>\r
+bool operator!=(const std::shared_ptr<T>& a, const safe_ptr<U>& b)  // noexcept\r
+{\r
+       return a.get() != b.get();\r
+}\r
+\r
+template<class T, class U>\r
+bool operator!=(const safe_ptr<T>& a, const std::shared_ptr<U>& b)  // noexcept\r
+{\r
+       return a.get() != b.get();\r
+}\r
+\r
 template<class T, class U>\r
 bool operator!=(const safe_ptr<T>& a, const safe_ptr<U>& b) // noexcept\r
 {\r