From f8c99b9f50034e53dbfcc1981d737905b5ee8238 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 29 Jun 2015 23:18:08 +0100 Subject: [PATCH] fix type traits aligned storage --- octa/type_traits.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octa/type_traits.hh b/octa/type_traits.hh index 370a8da..9ae17c5 100644 --- a/octa/type_traits.hh +++ b/octa/type_traits.hh @@ -1116,14 +1116,14 @@ using CommonType = typename octa::detail::CommonTypeBase::Type; namespace detail { template struct AlignedTest { - union type { + union Type { octa::uchar data[N]; octa::MaxAlign align; }; }; template struct AlignedStorageBase { - struct type { + struct Type { alignas(A) octa::uchar data[N]; }; };