This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: "error: there are no arguments to..." in my code
Sorry I forgot to write... I have to say, I did not write this function. Hope
these informations are sufficient
template <class Gt, class Tds >
typename Triangulation_2<Gt, Tds>::Finite_edges_iterator
Triangulation_2<Gt, Tds>::
finite_edges_begin() const
{
if ( dimension() < 1 )
return finite_edges_end();
return filter_iterator( all_edges_end(),
infinite_tester(),
all_edges_begin());
}
corey taylor wrote:
>
> 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
>
>
--
View this message in context: http://www.nabble.com/%22error%3A-there-are-no-arguments-to...%22-in-my-code-tf4825748.html#a13807409
Sent from the gcc - Help mailing list archive at Nabble.com.