Enum in C++ like Enum in Ada?
At one point I had looked at implementing a class/template in C++ that would support an Enum that would behave like it does in Ada. It has been some time since I thought about this problem and I was wondering if anyone has ever solved this problem? EDIT: My apologies, I should clarify what functionality I thought were useful in the Ada implementation of the Enum. Given the enumeration type fruit is (apple, banana, cherry, peach, grape); We know that fruit is one of the listed fruits: apple, banana, cherry, peach, grape. Nothing really different there from C++. What is very useful are the