[PATCHv3 2/2] libstdc++: Add std::aligned_union.

Jonathan Wakely jwakely@redhat.com
Mon Jun 2 13:56:00 GMT 2014


On 16/04/14 17:47 +0200, Rüdiger Sonderfeld wrote:
>Of course I forgot to replace one _M_ instance.  This should work now.
>Sorry about this.
>
>-- 8< --------------------------------------------------------- >8 --
>
>C++11: [meta.trans.other]
>
>* libstdc++-v3/testsuite/20_util/aligned_union/1.cc: New file.
>* libstdc++-v3/include/std/type_traits (__strictest_alignment): New
>  helper struct.
>  (aligned_union): New struct (C++11).
>  (aligned_union_t): New type alias (C++14).

Hi,

I've fixed up the patch to meet the coding standards, define the
static member aligned_union::alignment_value, check the precondition,
update the docs and fix a test failure.

Tested x86_64-linux, committed to trunk.

Thanks for adding this missing piece!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 6873 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140602/e3667b28/attachment.bin>


More information about the Gcc-patches mailing list