forked from OctaForge/libostd
fix type traits aligned storage
This commit is contained in:
parent
d8d8ea7151
commit
f8c99b9f50
|
@ -1116,14 +1116,14 @@ using CommonType = typename octa::detail::CommonTypeBase<T, U, V...>::Type;
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
template<octa::Size N> struct AlignedTest {
|
template<octa::Size N> struct AlignedTest {
|
||||||
union type {
|
union Type {
|
||||||
octa::uchar data[N];
|
octa::uchar data[N];
|
||||||
octa::MaxAlign align;
|
octa::MaxAlign align;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
template<octa::Size N, octa::Size A> struct AlignedStorageBase {
|
template<octa::Size N, octa::Size A> struct AlignedStorageBase {
|
||||||
struct type {
|
struct Type {
|
||||||
alignas(A) octa::uchar data[N];
|
alignas(A) octa::uchar data[N];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue