Changeset 378 for XIOS/trunk/src/type/enum_ref_impl.hpp
- Timestamp:
- 10/22/12 13:39:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.