From -8442872411530776010 X-Google-Thread: f78e5,c9a289c55d59e43d X-Google-Attributes: gidf78e5,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!news-xfer.cox.net!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull From: jdennett@acm.org (James Dennett) Newsgroups: comp.std.c++ Subject: Re: non-type template parameter in the new std. Date: Mon, 17 Jul 2006 16:04:42 GMT Organization: Cox Communications Lines: 35 Sender: mail2news@demon.net Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++) Message-ID: References: <1152697717.720355.314370@35g2000cwc.googlegroups.com> <1152726032.559269.324790@75g2000cwc.googlegroups.com> NNTP-Posting-Host: news.news.demon.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.demon.co.uk 1153152287 24725 158.152.254.254 (17 Jul 2006 16:04:47 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 17 Jul 2006 16:04:47 +0000 (UTC) X-Original-To: std-c++@mailman.ucar.edu X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060516) X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au X-Path: comp-std-cpp-robomod!not-for-mail X-Received: (from fjh@localhost) by mulga.csse.unimelb.edu.au (8.13.6+Sun/8.13.6/Submit) id k6HG4gaT009291; Tue, 18 Jul 2006 02:04:42 +1000 (EST) X-NNTP-Posting-Date: Mon, 17 Jul 2006 11:44:48 EDT X-Delivered-To: std-c++@mailman.ucar.edu X-Authentication-Warning: fed1read12.mgt.cox.net: news set sender to newsmaster@cox.net using -f X-Newsgroups: comp.std.c++ Xref: g2news2.google.com comp.std.c++:2783 Frederick Gotham wrote: > Gabriel Dos Reis posted: > >> 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". > > > It baffles me why anyone would write: > > typename T > > when they can write: > > class T Because "class" is suggestive of a class type, which is not required, possibly. Clarity is often enhanced by using the longer, more expressive form. -- James --- [ 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 ]