From -8367589003335642952
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc772,10e355266b6fd117
X-Google-Attributes: gidfc772,public
X-Google-Thread: f78e5,10e355266b6fd117
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-07-13 19:02:07 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!denver-snf1.gtei.net!news.gtei.net!namche.sun.com!sunnews1.Eng.Sun.COM!engnews1.eng.sun.com!taumet!clamage
From: Gabriel Dos Reis <gdr@merlin.nerim.net>
Newsgroups: comp.std.c++,comp.lang.c++.moderated
Subject: Re: A humble attempt to suggest alignment support for C++
Date: 14 Jul 2002 01:51:09 GMT
Organization: CodeSourcery, LLC
Lines: 25
Approved: stephen.clamage@sun.com (comp.std.c++)
Message-ID: <m3fzyoankg.fsf@merlin.nerim.net>
References: <3CEA1A08.C6D95CC7@lmf.ericsson.se>
  <53e3f3b2.0205270557.bdd703d@posting.google.com>
  <m3bs9gu4hy.fsf@merlin.nerim.net>
  <agmcgj$d7k$1@wanadoo.fr>
NNTP-Posting-Host: taumet.eng.sun.com
X-NNTP-Posting-Host: netlab.cs.rpi.edu
X-Original-Date: 12 Jul 2002 19:00:31 +0200
X-Submission-Address: c++-submit@netlab.cs.rpi.edu
X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated
	iQBVAwUAPTAbCkHMCo9UcraBAQHISwIAs9fQ02wEgsyNqiyffgRb4reUePiown6U
	ncyl56qleb9vM2C2icz+1UdFNrftKQ9egYhBbjOY17dPbgZusF1/OA==
	=HPKI
X-Approved-For-Group: francis.moderator@robinton.demon.co.uk comp.lang.c++.moderated
X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang)
Content-Length: 873
Originator: clamage@taumet
Xref: archiver1.google.com comp.std.c++:12688 comp.lang.c++.moderated:46515


"Baugereau" <baugereau@ifrance.kom> writes:

| I quite agree but you often want to specify a different alignment for
| different allocations of the same type
| std::aligned_storage<T,128>::type buffer[count] might be better (but I guess
| we can have a default parameter).

Yes, default template-argument makes it work with user supplied (as
opposed to compiler-deduced) alignment.

-- 
Gabriel Dos Reis, dosreis@cmla.ens-cachan.fr



      [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ]
      [ about comp.lang.c++.moderated. First time posters: do this! ]

[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]




