Gelu Ionescu wrote: > My hope is to detect a substring in a string using 2 string::iterators > it1 & it2.
Don't, std::string has other methods for that. Otherwise, you would need an algorithm that searches one sequence within another sequence, which is easy to write but AFAIK not part of the C++ standardlibrary or STL (which are not the same, btw). All this has nothing to do with the GCC's C++ compiler though. Uli -- http://gcc.gnu.org/faq.html http://parashift.com/c++-faq-lite/ _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus