Re: About "typename" and "template".



 DEVELOP > c-Plus-Plus > Re: About "typename" and "template".

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1
Topic: DEVELOP > c-Plus-Plus
User: "Attila Feher"
Date: 14 Oct 2003 01:11:36 AM
Object: Re: About "typename" and "template".
Shawn Shie wrote:
[SNIP]

Problems:
1).Why must a "typename" in place (1)?
I ever wrote some codes with no "typename"s,
but they could be compiled exactly and worked with no error.
When must "typename" be used??

2).What's the effect of the word "template"??
There are no error without the "template" as i tried.
So, are there any semantic differences between the two--with or
without "template" ?

Please read this online article from CUJ (ahem, from Steve Dewhurst):
http://www.cuj.com/documents/s=8464/cuj0308dewhurst/
It will answer all your questions.
--
Attila aka WW
.

 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER