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
_RWSTD_TT_ALIGNED_POD().

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 http://tinyurl.com/5kmvdy for reference.
>
>Martin
>
>

Reply via email to