Changeset 143

Show
Ignore:
Timestamp:
05/31/08 22:03:41 (6 months ago)
Author:
baxissimo
Message:

Re-enable void initializer.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/OpenMeshD/OpenMesh/Core/Geometry/VectorT.d

    r135 r143  
    116116  //---------------------------------------------------------------- class info 
    117117 
    118     debug { 
    119         union { 
    120             Scalar[N] values_; 
    121             static if(N<=4) { 
    122                 struct { 
    123                     static if(N>=1) {Scalar x; } 
    124                     static if(N>=2) {Scalar y; } 
    125                     static if(N>=3) {Scalar z; } 
    126                     static if(N>=4) {Scalar w; } 
    127                 } 
    128             } 
    129         } 
    130     } 
    131     else { 
    132         // don't initialize outside debug mode for better speed 
    133         union { 
    134             Scalar[N] values_ /*= void*/; 
    135             static if(N<=4) { 
    136                 struct { 
    137                     static if(N>=1) {Scalar x; } 
    138                     static if(N>=2) {Scalar y; } 
    139                     static if(N>=3) {Scalar z; } 
    140                     static if(N>=4) {Scalar w; } 
    141                 } 
     118    union { 
     119        Scalar[N] values_ = void; 
     120        static if(N<=4) { 
     121            struct { 
     122                static if(N>=1) {Scalar x; } 
     123                static if(N>=2) {Scalar y; } 
     124                static if(N>=3) {Scalar z; } 
     125                static if(N>=4) {Scalar w; } 
    142126            } 
    143127        }