Change aligned_storage::dummy::data to unsigned char[]

This commit is contained in:
Peter Dimov
2022-02-18 21:55:13 +02:00
parent 8e86559103
commit ec96129e9e

View File

@ -28,7 +28,7 @@ class aligned_storage
// BOOST_MAY_ALIAS works around GCC warnings about breaking strict aliasing rules when casting storage address to T* // BOOST_MAY_ALIAS works around GCC warnings about breaking strict aliasing rules when casting storage address to T*
union BOOST_MAY_ALIAS dummy_u union BOOST_MAY_ALIAS dummy_u
{ {
char data[ sizeof(T) ]; unsigned char data[ sizeof(T) ];
BOOST_DEDUCED_TYPENAME type_with_alignment< BOOST_DEDUCED_TYPENAME type_with_alignment<
::boost::alignment_of<T>::value >::type aligner_; ::boost::alignment_of<T>::value >::type aligner_;
} dummy_ ; } dummy_ ;