Possible Duplicate:
Why switch statement cannot be applied on strings?
In some post I read that the reason is "the compiler must understand what it means for two values to be equal", but in C# it also doesn't know and just call function similar to Equals
, so why C++ cannot do it either?