Why does C # support a switch with a string, but C ++ doesn't?

Possible duplicate:
Why can't the switch statement apply to strings?

In some article, I read that the reason is that "the compiler must understand what it means for two values ​​to be equal," but in C # it also does not know and just calls a function similar to Equals , so why C ++ can't do this?

+7
source share

All Articles