Ticket #8966: ptrfix.patch
File ptrfix.patch, 915 bytes (added by , 15 years ago) 


ptr.h
180 180 _pointer = 0; 181 181 } 182 182 183 template <class T2> 184 bool operator==(const Common::SharedPtr<T2> &r) const { 185 return get() == r.get(); 186 } 187 188 template <class T2> 189 bool operator!=(const Common::SharedPtr<T2> &r) const { 190 return get() != r.get(); 191 } 192 183 193 /** 184 194 * Returns the number of references to the assigned pointer. 185 195 * This should just be used for debugging purposes. … … 208 218 209 219 } // end of namespace Common 210 220 211 template<class T1, class T2>212 bool operator==(const Common::SharedPtr<T1> &l, const Common::SharedPtr<T2> &r) {213 return l.get() == r.get();214 }215 216 template<class T1, class T2>217 bool operator!=(const Common::SharedPtr<T1> &l, const Common::SharedPtr<T2> &r) {218 return l.get() != r.get();219 }220 221 221 #endif