Ignore:
Timestamp:
Nov 13, 2009, 1:41:34 PM (14 years ago)
Author:
mies
Message:

Fixed tons of warnings when using CXXFLAGS="-Wall"!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/serialization/DataStream.hpp

    r5638 r6919  
    516516
    517517        /* array and vector support */
    518         template<typename T>
     518        template<typename T, bool staticArray = false>
    519519        class ArrayTpl : public ExplicitSerializer {
    520520        private:
     
    527527
    528528                sznMethodBegin(X)
    529                 if (X.isDeserializer()) v = new T[l];
     529                if (X.isDeserializer() && !staticArray) v = new T[l];
    530530                for (size_t i=0; i<l; i++) X && v[i];
    531531                sznMethodEnd()
     
    556556        finline ArrayTpl<T> A( T*& array, size_t length ) {
    557557                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);
    558563        }
    559564
Note: See TracChangeset for help on using the changeset viewer.