I saw this C# (C sharp see code below) example given by Stefan ...?? (forgot his last name), he gave a solution for implementing a switch on strings using STL and pure C++.
I will not show his solution because its rather large compared to the C# solution.
My questions :
Why does C++ not have a "standard" solution for such a common thing as a switch on strings, is there a good reason?
Is there a "easy" solution to emulate a switch on strings in C++ without
having to use STL ?
This code below is legal C#. You can switch on strings in C#, but NOT in C++
case "Value X":
case "Value Y":
case "Value Z";
Greetinx and thanx from Winnitou