stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek" <>
Subject RE: question about aligned_storage
Date Wed, 25 Jun 2008 00:32:29 GMT

Martin Sebor wrote:
>While looking at the hoops we jump through to implement aligned_storage
>I recalled the gcc __attribute__ (aligned (N)). Is there any to use it
>to simplify the implementation for gcc?

We already do. Have a look at the definition of the macro

I might be able to eliminate __rw_aligned_storage_impl<> if I wanted to
do a partial specialization of __rw_aligned_storage<> on the _Align
non-type template parameter and I could also eliminate
__rw_default_alignment<>, but that is about as much as I think I could
reduce it.

>See for reference.

View raw message