I was wondering if you can compare two strings using ==. I have a function which takes in a const value &item and since its a value type there is no way I can determine what type the value is, hence if the value type is a string, == may not work.
Hence the question, what would be the best way to tackle this problem? I was thinking of overloading the == operator, but is there an easy way?
In C++
operator ==forstd::stringcompares the content of the strings.