Changeset 7182 for code/trunk/src/libraries/util
- Timestamp:
- Aug 18, 2010, 7:41:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/util/Serialise.h
r7163 r7182 684 684 } 685 685 686 template <class T> inline void loadAndIncrease( conststd::set<T>& variable, uint8_t*& mem )686 template <class T> inline void loadAndIncrease(std::set<T>& variable, uint8_t*& mem ) 687 687 { 688 688 uint32_t nrOfElements = 0; 689 689 loadAndIncrease( nrOfElements, mem ); 690 typename std::set<T>:: const_iterator it = variable.begin();690 typename std::set<T>::iterator it = variable.begin(); 691 691 for( uint32_t i = 0; i<nrOfElements; ++i ) 692 692 { … … 695 695 while( it!=variable.end() && *it!=temp ) 696 696 { 697 ((std::set<T>*)(&variable))->erase(it++);697 variable.erase(it++); 698 698 ++it; 699 699 } 700 700 if( it==variable.end() ) 701 701 { 702 ((std::set<T>*)(&variable))->insert(temp);702 variable.insert(temp); 703 703 } 704 704 }
Note: See TracChangeset
for help on using the changeset viewer.