Changeset 1477 for XIOS/dev/XIOS_DEV_CMIP6/src/type/type_impl.hpp
- Timestamp:
- 04/12/18 11:12:11 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/type/type_impl.hpp
r1158 r1477 122 122 CType<T>::operator T&() 123 123 { 124 checkEmpty(); 124 try 125 { 126 checkEmpty(); 127 } 128 catch (xios::CException & exc) 129 { 130 StdString msg("Data is not initialized\n"); 131 ERROR("template <typename T> void CType<T>::checkEmpty(void) const", << msg); 132 } 133 125 134 return *ptrValue ; 126 135 } … … 208 217 void CType<T>::checkEmpty(void) const 209 218 { 210 if (empty) ERROR("template <typename T> void CType<T>::checkEmpty(void) const", << "Data is not initialized") ; 219 // if (empty) ERROR("template <typename T> void CType<T>::checkEmpty(void) const", << "Data is not initialized") ; 220 if (empty) throw CException(); 211 221 } 212 222
Note: See TracChangeset
for help on using the changeset viewer.