michael@0: #ifndef ALIGNED_BUFFER_H michael@0: #define ALIGNED_BUFFER_H michael@0: michael@0: _STLP_BEGIN_NAMESPACE michael@0: // this is for fake initialization michael@0: template michael@0: union _Stl_aligned_buffer { michael@0: char buf[sizeof(T)]; michael@0: struct { double a; double b; } padding; michael@0: michael@0: T* operator&() { michael@0: return __REINTERPRET_CAST(T*, this); michael@0: } michael@0: michael@0: T const* operator&() const { michael@0: return __REINTERPRET_CAST(T const*, this); michael@0: } michael@0: }; michael@0: _STLP_END_NAMESPACE michael@0: michael@0: #endif