"error: there are no arguments to..." in my code
corey taylor
corey.taylor@gmail.com
Sat Nov 17 09:12:00 GMT 2007
On Nov 17, 2007 3:18 AM, mahmoodn <nt_mahmood@yahoo.com> wrote:
>
> I use OS: i686_Linux-2.6 and Compiler: GNU 3.4.2
> for the code bellow:
> typedef Segment_Delaunay_graph_hierarchy_2 <Sdg_traits_2,
> CGAL::Tag_true, Sdg_ds_2> Sdg_2;
> typename Sdg_2::Finite_edges_iterator eit;
> for (eit = finite_edges_begin(); eit != finite_edges_end(); ++eit)
> _compute_primal_edge (*eit, edges);
>
> it says:
> ../../include/CGAL/Polygon_Voronoi_diagram_2.h:331:error: there are no
> arguments to `finite_edges_begin' that depend on a template parameter, so a
> declaration of `finite_edges_begin' must be available
Well, where is finite_edges_begin declared? You don't provide the whole class.
http://gcc.gnu.org/onlinedocs/gcc/Name-lookup.html
Look at the example at the bottom for an explanation where this error
might come from.
corey
corey
More information about the Gcc-help
mailing list