diff --git a/include/boost/move/detail/type_traits.hpp b/include/boost/move/detail/type_traits.hpp index 2d49ace..c8bc74a 100644 --- a/include/boost/move/detail/type_traits.hpp +++ b/include/boost/move/detail/type_traits.hpp @@ -1106,8 +1106,9 @@ BOOST_MOVE_ALIGNED_STORAGE_WITH_BOOST_ALIGNMENT(0x1000) template union aligned_struct_wrapper { + typedef aligned_struct aligner_t; aligned_struct aligner; - unsigned char data[Len > sizeof(aligner) ? Len : sizeof(aligner)]; + unsigned char data[Len > sizeof(aligner_t) ? Len : sizeof(aligner_t)]; }; template @@ -1122,7 +1123,7 @@ template union aligned_union { T aligner; - unsigned char data[Len > sizeof(aligner) ? Len : sizeof(aligner)]; + unsigned char data[Len > sizeof(T) ? Len : sizeof(T)]; }; template