From 4a60a8eb0660ac83fdb4886c1eb60dc6e6a4b2ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 3 Nov 2020 10:56:41 +0100 Subject: [PATCH] Fix compilation issue for aligned_struct_wrapper and aligned_union. --- include/boost/move/detail/type_traits.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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