Please help with these two errors

Jonathan Saxton
Wed Jan 16 00:45:00 GMT 2008

Typename keyword is ONLY valid within a template.  Your class declaration is
not a template.

If it compiled before then it shouldn't have.

-----Original Message-----
From: [] On
Behalf Of mahmoodn
Sent: 14 January, 2008 01:45
Subject: RE: Please help with these two errors

>Why do you have "typename" here?

realy I don't know!! I did not write this code but it could be compiled with
previous versions of gcc.

shall I remove typename?:confused:

John (Eljay) Love-Jensen wrote:
> Hi mahmoodn,
> class Circular_arc_2 : public Vertex_feature_2
> {
>     virtual typename Vertex_feature_2::Type type () const
>     {
>       return (CIRCULAR);
>     }
> }
> Why do you have "typename" here?
> --Eljay

View this message in context:
Sent from the gcc - Help mailing list archive at

More information about the Gcc-help mailing list