Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Containers & Iterators sanity check
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Evan Carew, post: 2537402"] -----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 - [URL]http://enigmail.mozdev.org[/URL] iD8DBQFDsz8rpxCQXwV2bJARAuWJAKCHdbS2VQ6pBC6/cyPaTqXK6bd2KwCdE7xB KnXpB8StjZ7CFH92Nz94Ino= =jzu9 -----END PGP SIGNATURE----- [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Containers & Iterators sanity check
Top