Changeset 6919 for source/ariba/utility/serialization/DataStream.hpp
- Timestamp:
- Nov 13, 2009, 1:41:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/serialization/DataStream.hpp
r5638 r6919 516 516 517 517 /* array and vector support */ 518 template<typename T >518 template<typename T, bool staticArray = false> 519 519 class ArrayTpl : public ExplicitSerializer { 520 520 private: … … 527 527 528 528 sznMethodBegin(X) 529 if (X.isDeserializer() ) v = new T[l];529 if (X.isDeserializer() && !staticArray) v = new T[l]; 530 530 for (size_t i=0; i<l; i++) X && v[i]; 531 531 sznMethodEnd() … … 556 556 finline ArrayTpl<T> A( T*& array, size_t length ) { 557 557 return ArrayTpl<T>(array,length); 558 } 559 560 template<typename T> 561 finline ArrayTpl<T,true> static_A( T*& array, size_t length ) { 562 return ArrayTpl<T, true>(array,length); 558 563 } 559 564
Note:
See TracChangeset
for help on using the changeset viewer.