On Thu, 2 Apr 2015 20:53:36 -0700 (PDT), SpreadTooThin
<
bjobr...@gmail.com> wrote:
>void searchout(void) {
>
> string l, t;
> for (std::vector<string>::iterator it = logLines.begin() ; it != logLines.end(); ++it) {
> for (std::vector<string>::iterator thrd = threadIds.begin() ; thrd != threadIds.end(); ++thrd) {
> l = *it;
> t = *thrd;
> if (l.substr(t) != string::npos) { // Something is wrong here?
>
> }
> }
> }
>}
>
>what is wrong with this if statement? l.substr(t) compiler doesn't like it.
What is the error message from your compiler?
Hint: The member substr takes two arguments, what have you given it?