Enum in C++ like Enum in Ada?

前端 未结 8 967
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 17:00

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 abo

8条回答
  •  猫巷女王i
    2020-12-05 17:47

    you might take a look at the java enum (http://madbean.com/2004/mb2004-3/) and this idea: http://en.wikipedia.org/wiki/Curiously_Recurring_Template_Pattern

提交回复
热议问题