阅读背景:

c++ enum类能有方法吗?

来源:互联网 

I have an enum class with two values, and I want to create a method which receives a value and returns the other one. I also want to maintain type safety(that's why I use enum class instead of enums).I have an enum class with two values, and I wan




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: