bool operator!= (CustomString &str1, CustomString &str2)
{
std::vector<string>:: iterator s2 = (str2.vec).begin();
for(std::vector<string>:: iterator s = (str1.vec).begin(); s != (str1.vec).end(); ++s)
{
if( *s2 == *s)
{
cout << *s2 << *s << endl;
return false;
}
++s2;
}
return true;
}
I don't know why, but this returns true 100% of the time.