Changeset 10919 for code/branches/cpp11_v2/src/libraries/util
- Timestamp:
- Dec 5, 2015, 10:47:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/util/Serialise.h
r10916 r10919 679 679 template <class T> inline void saveAndIncrease( const std::set<T>& variable, uint8_t*& mem ) 680 680 { 681 typename std::set<T>::const_iterator it = variable.begin();682 681 saveAndIncrease( (uint32_t)variable.size(), mem ); 683 for( ; it!=variable.end(); ++it)684 saveAndIncrease( *it, mem );682 for( const T& elem : variable ) 683 saveAndIncrease( elem, mem ); 685 684 } 686 685
Note: See TracChangeset
for help on using the changeset viewer.