From 4be4cac77dfa62a8a864f13c96c2a588ca8388c5 Mon Sep 17 00:00:00 2001 From: manuel Date: Sat, 13 Jun 2009 13:41:24 +0200 Subject: operator fix --- ue5/shared_ptr.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ue5/shared_ptr.hpp b/ue5/shared_ptr.hpp index e423904..37989e3 100644 --- a/ue5/shared_ptr.hpp +++ b/ue5/shared_ptr.hpp @@ -162,25 +162,25 @@ namespace Ti template bool operator==(const shared_ptr& a, const U2* b) { - return a.get() == b.get(); + return a.get() == b; } template bool operator==(const U1* a, const shared_ptr& b) { - return a.get() == b.get(); + return a == b.get(); } template bool operator!=(const shared_ptr& a, const U2* b) { - return a.get() != b.get(); + return a.get() != b; } template bool operator!=(const U1* a, const shared_ptr& b) { - return a.get() != b.get(); + return a != b.get(); } template -- cgit v1.2.3