no match for 'operator++'

Hi everyone I am getting strange error while compiling following code..
1
2
3
4
5
6
7
8
9
10
.....
.....
RWTPtrHashDictionary<RWCString, SLCSourceIdInfo > *keyType2SourceId;
....
RWTPtrHashDictionaryIterator<RWCString, SLCSourceIdInfo > itt(*keyType2SourceId);
while(++itt)
  {
....
....
}

I am getting error as
error: no match for 'operator++' in '++itt
closed account (S6k9GNh0)
I'm going to guess that the class used to define object itt doesn't have a function to handle the ++ operator. My suggestion would be to implement the ++ operator or not use the ++ operator.
You mean to say that I need to implement ++ in SLCSourceIdInfo class..??
Nope, in RWTPtrHashDictionaryIterator
Buts its a standard function..
And i think they already support for ++...........
RWTPtrHashDictionaryIterator is a class and it's not standard
Yups , you are right, But in specification Its been mentioned that RWTPtrHashDictionaryIterator implement operator overloading ++...
And above code compiles fine on solaris...But when i tried to compile it on linux its giving error..
Topic archived. No new replies allowed.