From -4890260771492179903
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,192ecde534e0a369
X-Google-Attributes: gidf78e5,public
From: Shashaanka <shashank@sashimi.wwa.com>
Subject: Re: template members in non-template classes?
Date: 1995/06/06
Message-ID: <3r0k1p$jh9@news.wwa.com>#1/1
X-Deja-AN: 103925189
references: <3qq7vi$esg@vishnu.jussieu.fr> <3qskvh$b7r@engnews2.Eng.Sun.COM>
to: stephan.clamage@eng.sun.com
content-type: text/plain; charset=us-ascii
organization: WorldWide Access - Chicagoland Internet Services
mime-version: 1.0
newsgroups: comp.std.c++
x-mailer: Mozilla 1.1N (Windows; I; 16bit)



>In D&E, Stroustrup discusses template members
>using such an example (Shape class). The example
>uses a virtual template member. I take it from
>the WP that virtual template members are not allowed.

Correct. The compiler can't know when compiling the definition
what different instantiations of a virtual funciton
there will eventually be.

>But are template members in non-template classes allowed ?

>Yes. But I don't know of any compilers that support it yet.

The Draft ANSI grammar doesn't seem to support it.


-- 


************************************************************
* Shashaanka                                               *
*                                                          *
* 1134 Johnson Drive # 3317                                *
* Buffalogrove IL 60089                                    *
* Tel: (708) 541 2726                                      *
* E Mail: shashank@sashimi.wwa.com                         *
************************************************************





