Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 3331 invoked from network); 26 Jun 2008 21:24:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 21:24:34 -0000 Received: (qmail 4669 invoked by uid 500); 26 Jun 2008 21:24:36 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 4656 invoked by uid 500); 26 Jun 2008 21:24:36 -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 4645 invoked by uid 99); 26 Jun 2008 21:24:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 14:24:36 -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; Thu, 26 Jun 2008 21:23:46 +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 m5QLO5EY000495 for ; Thu, 26 Jun 2008 21:24:05 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: Thu, 26 Jun 2008 15:23:28 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: question about aligned_storage Thread-Index: AcjXzvdwru20jmx1TpGJ59tZdiakjgAA5+fg References: <48618975.7070800@roguewave.com> <4861BCF0.30108@roguewave.com> <4863BDEB.1090606@roguewave.com> <4863E9E2.80509@roguewave.com> <486401DF.1000002@roguewave.com> From: "Travis Vitek" To: X-Virus-Checked: Checked by ClamAV on apache.org =20 Martin Sebor wrote: >Martin Sebor wrote: >> Travis Vitek wrote: >[...] >>>>> The draft shows a 'typical implementation' of=20 >aligned_storage that=20 >>>>> uses the new alignas keyword, >>>>> but alignas doesn't appear to be supported >>>>> anywhere. >>>> That's probably because they didn't want to favor any existing >>>> implementation over others. >>> >>> I don't see this as a problem with the standard not wanting=20 >to favor one >>> implementation over another, it is a problem because no current >>> implementation supports the new keyword. >>=20 >> That might have been the point: use a made up keyword that doesn't >> exist on any implementation so as not to suggest that one should >> be preferred over the others. (Just guessing.) > >But I'm guessing wrong, of course. Again, I missed an important >detail in your post: that alignas is a new C++ keyword (I didn't >know that). Sorry, I need to pay closer attention. > >Given alignas, aligned_storage seems completely superfluous. I >wonder why it's even still there... > The only real benefit is that the name aligned_storage tells exactly what it does and it provides a default alignment for the requested size. >Martin >