Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/collections/array.hfa

    rcdf7d43 rb8e047a  
    156156//      other two.  This solution offers ?{}() that needs only ?{}(), and similar for ^?{}.
    157157
    158 // skip initializing elements
    159 //   array(float, 5) x = { delay_init };
    160 enum () delay_init_t { delay_init };
    161 forall( [N], S & | sized(S), Timmed &, Tbase & )
    162 static inline void ?{}( arpk( N, S, Timmed, Tbase ) & this, delay_init_t ) {
     158forall( [N], S & | sized(S), Timmed &, Tbase & | { void ?{}( Timmed & ); } )
     159static inline void ?{}( arpk( N, S, Timmed, Tbase ) & this ) { 
    163160        void ?{}( S (&)[N] ) {}
    164161        ?{}(this.strides);
    165 }
    166 
    167 // call default ctor on elements
    168 //   array(float, 5) x;
    169 forall( [N], S & | sized(S), Timmed &, Tbase & | { void ?{}( Timmed & ); } )
    170 static inline void ?{}( arpk( N, S, Timmed, Tbase ) & this ) { 
    171         ?{}( this, delay_init );
     162
    172163        for (i; N) ?{}( (Timmed &)this.strides[i] );
    173164}
     
    182173        }
    183174}
    184 
    185175
    186176//
Note: See TracChangeset for help on using the changeset viewer.