-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm using g++ 3.4.2 & am having trouble with algorithms (find) and
strings. Here's my code:
string::iterator itor = find(input.begin(), input.end(), "|");
I'm fairly sure this code worked for me in the past, as I am working out
of the same reference material I have used on previous compilers. I just
can't figure out why I am getting the following error:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/bits/stl_algo.h:207:
error: ISO C++ forbids comparison between pointer and integer
Any help would be greatly appreciated.
Evan Carew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFDsz8rpxCQXwV2bJARAuWJAKCHdbS2VQ6pBC6/cyPaTqXK6bd2KwCdE7xB
KnXpB8StjZ7CFH92Nz94Ino=
=jzu9
-----END PGP SIGNATURE-----