Changeset 1158 for XIOS/dev/dev_olga/src/type/type_ref_impl.hpp
- Timestamp:
- 06/06/17 17:58:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/type/type_ref_impl.hpp
r680 r1158 201 201 } 202 202 203 203 template <typename T> 204 bool operator==(const CType_ref<T>& lhs, const T& rhs) 205 { 206 if (lhs.isEmpty()) return false; 207 return (*lhs.ptrValue == rhs); 208 } 209 210 template <typename T> 211 bool operator==(const T& lhs, const CType_ref<T>& rhs) 212 { 213 return (rhs == lhs); 214 } 215 216 template <typename T> 217 bool operator==(const CType_ref<T>& lhs, const CType_ref<T>& rhs) 218 { 219 if ((lhs.isEmpty() && !rhs.isEmpty()) || (!lhs.isEmpty() && rhs.isEmpty())) return false; 220 if (lhs.isEmpty() && rhs.isEmpty()) return true; 221 222 return (*lhs.ptrValue == *rhs.ptrValue); 223 } 204 224 205 225 template <typename T>
Note: See TracChangeset
for help on using the changeset viewer.