This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Please help with these two errors
- From: "John (Eljay) Love-Jensen" <eljay at adobe dot com>
- To: "mahmoodn" <nt_mahmood at yahoo dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Tue, 15 Jan 2008 07:51:09 -0800
- Subject: RE: Please help with these two errors
- References: <14841429.post@talk.nabble.com>
Hi mahmoodn,
In your code snippet, this Circular_arc_2 routine is malformed C++.
virtual typename Vertex_feature_2::Type type () const
{
return (CIRCULAR);
}
Change it to this:
virtual typename VVc_diagram_2<Traits_, AppKernel_>::Vertex_feature_2::Type type () const
{
return Vertex_feature_2::CIRCULAR;
}
Or introduce a helpful typedef in Circular_arc_2:
typedef typename VVc_diagram_2<Traits_, AppKernel_>::Vertex_feature_2::Type Type;
virtual Type type () const
{
return Vertex_feature_2::CIRCULAR;
}
HTH,
--Eljay