- Timestamp:
- 10/22/12 13:39:59 (12 years ago)
- Location:
- XIOS/trunk/src/type
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/type/enum_impl.hpp
r369 r378 179 179 string CEnum<T>::_toString(void) const 180 180 { 181 if (!empty) return string((T::getStr())[(int)(*ptrValue)]) ; 181 if (empty) return string("empty") ; 182 return string((T::getStr())[(int)(*ptrValue)]) ; 182 183 } 183 184 … … 191 192 else ERROR("template <typename T> bool CEnum<T>::_toBuffer(CBufferOut& buffer) const", 192 193 <<"incompatibility between enumeration and standard integer type") ; 194 return false ; 193 195 } 194 196 -
XIOS/trunk/src/type/enum_ref_impl.hpp
r369 r378 166 166 string CEnum_ref<T>::_toString(void) const 167 167 { 168 if (!empty) return string((T::getStr())[(int)(*ptrValue)]) ; 168 if (empty) return string("empty"); 169 return string((T::getStr())[(int)(*ptrValue)]) ; 169 170 } 170 171 … … 179 180 else ERROR("template <typename T> bool CEnum_ref<T>::_toBuffer(CBufferOut& buffer) const", 180 181 <<"incompatibility between enumeration and standard integer type") ; 182 return false ; 181 183 } 182 184
Note: See TracChangeset
for help on using the changeset viewer.