Changeset 3227 for code/branches/netp6/src/util
- Timestamp:
- Jun 23, 2009, 8:53:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp6/src/util/Serialise.h
r3084 r3227 408 408 template <> inline void loadAndIncrease( const std::string& variable, uint8_t*& mem ) 409 409 { 410 *(std::string*)( &variable ) = std::string((const char *)mem);410 *(std::string*)( &variable ) = (const char *)mem; 411 411 mem += variable.length()+1; 412 412 } … … 414 414 template <> inline bool checkEquality( const std::string& variable, uint8_t* mem ) 415 415 { 416 return std::string((const char*)mem)==variable; 416 //return std::string((const char*)mem)==variable; 417 return (const char*)mem==variable; 417 418 } 418 419
Note: See TracChangeset
for help on using the changeset viewer.