From 4940967424349449471 X-Google-Thread: f78e5,c9a289c55d59e43d X-Google-Attributes: gidf78e5,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!news.alt.net!comp-std-cpp-robomod!not-for-mail From: "kanze" Newsgroups: comp.std.c++ Subject: Re: non-type template parameter in the new std. Date: Mon, 17 Jul 2006 09:02:09 CST Organization: http://groups.google.com Lines: 36 Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: <1153129969.041331.207920@35g2000cwc.googlegroups.com> References: <1152697717.720355.314370@35g2000cwc.googlegroups.com> <1152726032.559269.324790@75g2000cwc.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1153129972 27987 127.0.0.1 (17 Jul 2006 09:52:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 17 Jul 2006 09:52:52 +0000 (UTC) Return-Path: X-Authentication-Warning: mulga.csse.unimelb.edu.au: fjh set sender to devnull@stump.algebra.com using -f X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Original-To: std-c++@mailman.ucar.edu Delivered-To: std-c++@mailman.ucar.edu User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0.1) Gecko/20020920 Netscape/7.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 35g2000cwc.googlegroups.com; posting-host=62.160.54.162; posting-account=qsfl8gwAAABZGaLp2a7FeTfDkJamzWYW X-Virus-Scanned: amavisd-new at ucar.edu X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au X-MIME-Autoconverted: from quoted-printable to 8bit by mulga.csse.unimelb.edu.au id k6H9qvL6008579 X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au Xref: g2news2.google.com comp.std.c++:2769 Gabriel Dos Reis wrote: > On Wed, 12 Jul 2006, Richard Smith wrote: > | Regarding the syntax, there isn't anything obvious that fits with C++ > | idea of templates. The name of the type needs to be in scope when the > | non-type template parameter is declared, so > | template > | struct foo {}; > > How about > template > struct foo { }; > ? > It does not say exactly that Min and Max have the same type, but that > is a minor point. One would gain in clarity by removing the noise > "typename T". But how do you name the type within the template? -- James Kanze GABI Software Conseils en informatique orient�e objet/ Beratung in objektorientierter Datenverarbeitung 9 place S�mard, 78210 St.-Cyr-l'�cole, France, +33 (0)1 30 23 00 34 --- [ 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.comeaucomputing.com/csc/faq.html ]