>
> I am a C++ dummy so can any one tell me what I should look for to fix the
> following. The code says:
>
> void CallStack::Output(ostream &os)
> {
>
> total_time = data.total_time();
>
> for (ProfileData::const_arc_iterator i = data.begin_roots();
> i != data.end_roots(); ++i)
> {
> os << root << ' ' << get_func_time(*i) << '\n';
> output_node(os, *i, 1);
> }
> }
>
> The compiler bitches:
>
> callstack.C: In member function `void CallStack::Output(std::ostream&)':
> callstack.C:83: no match for `ProfileData::const_arc_iterator& !=
> ProfileData::const_arc_iterator' operator
>
The compiler is complaining that the "const_arg_iterator" class
does not have a != operator where the left-hand-side is a
reference and the right-hand-side is not.
This is probably coming from the:
i != data.end_roots()
comparison in the for() loop.
- Dave Rivers -
--
[EMAIL PROTECTED] Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com