Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> classic enums have too many implicit conversions

They're fairly useful still (and since C++11 you can specify their underlying type), you can use them as namespaced macro definitions

Kinda hard to do "bitfield enums" with enum class



it is not really hard, you need to define the bitwise operators. It would be nice if they could be defaulted.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: