From 8480882809713221115
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,1cf6b858c2c5f1b6,start
X-Google-Attributes: gidf78e5,public
From: Stephen Cleary <csclear@my-deja.com>
Subject: Re: [Q] Dependent template arguments
Date: 2000/07/12
Message-ID: <8kdte5$kf7$1@nnrp1.deja.com>#1/1
X-Deja-AN: 645074945
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 963329725 mail2news:27248 mail2news mail2news.demon.co.uk
X-Http-Proxy: 1.1 x60.deja.com:80 (Squid/1.1.22) for client 208.171.21.29
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Tue Jul 11 01:31:49 2000 GMT
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MyDeja-Info: XMYDJUIDcsclear
Newsgroups: comp.std.c++

On Fri, 30 Jun 2000 06:08:17 CST, "Gabor Greif" <gabor@no.netopia.com>
wrote:

>On Thu, Jun 29, 2000 7:16 Uhr, Stephen Cleary <mailto:csclear@my-
deja.com>
>wrote:
>>In article <B575744D-A430A@192.109.102.124>,
>>  "Gabor Greif" <gabor@no.netopia.com> wrote:
>>> I am evaluating what degree of dependency of template arguments is
>>> permitted by the standard...
>>>
>>> template <typename T, template <T> class F>
>>> struct foo {};
>>>
>>> Admittedly my example is rather contrived, but I did not find any
>>hint in
>>> the standard that this kind of dependency would be disallowed.
>>
>>Since F is a template template argument, it needs a template parameter
>>list.  "<T>" is not a template parameter list.
>
>You seem to confuse things here.

You are correct.  I was confused!

I see nothing in the Standard to disallow the above.  Borland's C++
Builder 4 compiles it without complaint.

	-Steve


Sent via Deja.com http://www.deja.com/
Before you buy.

---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]




