array/darray: bypass complex constructor errors in union
This commit is contained in:
parent
9d123e003e
commit
5286e4e851
@ -146,7 +146,10 @@ namespace cruft {
|
|||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
union alignas (ValueT) {
|
union alignas (ValueT) storage_t {
|
||||||
|
storage_t () { };
|
||||||
|
~storage_t () { };
|
||||||
|
|
||||||
char store[sizeof (ValueT) * CapacityV];
|
char store[sizeof (ValueT) * CapacityV];
|
||||||
ValueT objects[CapacityV];
|
ValueT objects[CapacityV];
|
||||||
} m_data;
|
} m_data;
|
||||||
|
Loading…
Reference in New Issue
Block a user