Changeset 726
- Timestamp:
- 11/17/09 00:54:02 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.cpp
r713 r726 31 31 int id; 32 32 str2int_map::const_iterator iter = MAP.find ( name ); 33 if ( iter == MAP.end() ) {33 if ( iter == MAP.end() || name.length()==0) { //add new RV 34 34 id = MAP.size() + 1; 35 35 //debug … … 52 52 } else { 53 53 id = iter->second; 54 if (size>0 ){54 if (size>0 && name.length()>0){ 55 55 bdm_assert ( SIZES ( id ) == size, "RV " + name + " of size " + num2str(SIZES(id)) + " exists, requested size " + num2str(size) + "can not be assigned" ); 56 56 }