"Exits Funnel" <> wrote in message
> Hello,
>
> When I try to compile the above, g++ complains thusly:
[snip]
> test1.cpp:9 syntax error before ';' token.
>
> Presumably, this code compiles under MS Visual Studio 7.1. If I remove
> the 'typename' from line nine, it's compilable under g++. Two questions
> then:
>
> 1) Is it legal. In other words, should g++ complain?
No, it isn't . g++ is correct.
> 2) If it is legal, what does it do? It's not clear to me what purpose
> typname would serve in this particular context.
Sharad
|