fix bug with optional that resulted in 8x more memory than necessary being reserved

This commit is contained in:
Daniel Larimer 2015-07-09 13:39:20 -04:00
parent 8d13f292b8
commit 935e90c1ec

View file

@ -236,7 +236,7 @@ namespace fc {
const T* ptr()const { const void* v = &_value[0]; return static_cast<const T*>(v); }
// force alignment... to 8 byte boundaries
double _value[8 * ((sizeof(T)+7)/8)];
double _value[((sizeof(T)+7)/8)];
bool _valid;
};