[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C++: istream_iterator<string> has no component named operator!=.



* Shaul Karl (shaulka@bezeqint.net) spake thusly:
> What am I doing wrong?
> Summary:
> 
> Breakpoint 1, main () at main.cc:15
> 15          for (; iter1 != iter2; iter1++) cout << *iter1;
> (gdb) p iter1 != iter2
> Structure has no component named operator!=.
> (gdb) 

AFAIK iterators aren't pointers anymore. I dunno if that's
related to the error, or how dereferencing/comparison works now...
You might want to check the usual websites (like C++ annotations)
for any gotchas.

Dima
-- 
Q276304 - Error Message: Your Password Must Be at Least 18770 Characters
and Cannot Repeat Any of Your Previous 30689 Passwords           -- RISKS 21.37



Reply to: