Merge pull request #100 from boostorg/pr/aligned-storage-fix

Change aligned_storage::dummy::data to unsigned char[]
This commit is contained in:
Fernando Cacciola
2022-03-01 16:17:09 -03:00
committed by GitHub

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_ ;