array/darray: bypass complex constructor errors in union

This commit is contained in:
Danny Robson 2019-08-28 13:27:17 +10:00
parent 9d123e003e
commit 5286e4e851

View File

@ -146,7 +146,10 @@ namespace cruft {
private:
union alignas (ValueT) {
union alignas (ValueT) storage_t {
storage_t () { };
~storage_t () { };
char store[sizeof (ValueT) * CapacityV];
ValueT objects[CapacityV];
} m_data;