summaryrefslogtreecommitdiffstats
path: root/ue5/shared_ptr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ue5/shared_ptr.hpp')
-rw-r--r--ue5/shared_ptr.hpp8
1 files 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
162 template<typename U1, typename U2> 162 template<typename U1, typename U2>
163 bool operator==(const shared_ptr<U1>& a, const U2* b) 163 bool operator==(const shared_ptr<U1>& a, const U2* b)
164 { 164 {
165 return a.get() == b.get(); 165 return a.get() == b;
166 } 166 }
167 167
168 template<typename U1, typename U2> 168 template<typename U1, typename U2>
169 bool operator==(const U1* a, const shared_ptr<U2>& b) 169 bool operator==(const U1* a, const shared_ptr<U2>& b)
170 { 170 {
171 return a.get() == b.get(); 171 return a == b.get();
172 } 172 }
173 173
174 template<typename U1, typename U2> 174 template<typename U1, typename U2>
175 bool operator!=(const shared_ptr<U1>& a, const U2* b) 175 bool operator!=(const shared_ptr<U1>& a, const U2* b)
176 { 176 {
177 return a.get() != b.get(); 177 return a.get() != b;
178 } 178 }
179 179
180 template<typename U1, typename U2> 180 template<typename U1, typename U2>
181 bool operator!=(const U1* a, const shared_ptr<U2>& b) 181 bool operator!=(const U1* a, const shared_ptr<U2>& b)
182 { 182 {
183 return a.get() != b.get(); 183 return a != b.get();
184 } 184 }
185 185
186 template<typename U1, typename U2> 186 template<typename U1, typename U2>