Windows' std::string::find_first_of error
Hi, I've just got this peculiar problem:
Code:
....
std::string buffer ("tandard ");
if (buffer.find_first_of("err") != std::string::npos )
{
OutputDebugString ("Error found!");
}
...
As you can see, I'm trying to parse the string and if it has any occurence of the word "err", it would display the debug string. The funny thing is, even when the string don't have the word "err" at all like the "tandard " above, it would still call the OutputDebugString. Now why would that happen? It the STL in windows still suck?
Thanks in advance.