Please help with these two errors
mahmoodn
nt_mahmood@yahoo.com
Wed Jan 16 12:05:00 GMT 2008
>I would, since it violates C++ to have it there.
AND
>Typename keyword is ONLY valid within a template. Your class declaration
is
>not a template.
>If it compiled before then it shouldn't have.
Hi there,
I remove the "typename", but now it says another error:,(.
../include/CGAL/VVc_diagram_2.h:239: warning: ISO C++ forbids declaration of
`Type' with no type
../include/CGAL/VVc_diagram_2.h:239: error: cannot declare member
`CGAL::VVc_diagram_2<Traits_, AppKernel_>::Vertex_feature_2::Type' within
`CGAL::VVc_diagram_2<Traits_, AppKernel_>::Circular_arc_2'
../include/CGAL/VVc_diagram_2.h:239: error: expected `;' before "type"
By the way, what about the first error?:-(
John (Eljay) Love-Jensen wrote:
>
> Hi mahmoodn,
>
>> shall I remove typename?:confused:
>
> I would, since it violates C++ to have it there.
>
> I'm surprised the warning message didn't mention something to that effect.
> (It did with my GCC.)
>
> As GCC's C++ moves forward from version to version, it tends to become
> more and more compliant with ISO 14882.
>
> HTH,
> --Eljay
>
>
--
View this message in context: http://www.nabble.com/Please-help-with-these-two-errors-tp14787660p14834958.html
Sent from the gcc - Help mailing list archive at Nabble.com.
More information about the Gcc-help
mailing list