Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 83221 invoked from network); 25 Jun 2008 00:33:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 00:33:33 -0000 Received: (qmail 92260 invoked by uid 500); 25 Jun 2008 00:33:34 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 92241 invoked by uid 500); 25 Jun 2008 00:33:34 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 92230 invoked by uid 99); 25 Jun 2008 00:33:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 17:33:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.roguewave.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 00:32:44 +0000 Received: from exchmail01.Blue.Roguewave.Com (exchmail01.blue.roguewave.com [10.22.129.22]) by moroha.roguewave.com (8.13.6/8.13.6) with ESMTP id m5P0X3s6014194 for ; Wed, 25 Jun 2008 00:33:03 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: question about aligned_storage Date: Tue, 24 Jun 2008 18:32:29 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: question about aligned_storage Thread-Index: AcjWVhCzBm3vKmDLRTyC2rz1nXkx1QAAZ6mg References: <48618975.7070800@roguewave.com> From: "Travis Vitek" To: X-Virus-Checked: Checked by ClamAV on apache.org =20 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 > >