Mateusz Loskot :: hacking on, working out, living up

Strongly typed enum in Visual C++?

26 Aug 2009 | mloskot

Not yet. Victor Bazarov confirmed in reply to my post that there is no official announcement nor rumours that Microsoft is going to include native implementation of scoped and strongly typed enumerations defined in C++0x in upcoming Visual C++ 10.0. That’s a pity!

Thankfully, Boost provides portable emulation of scoped enums. It is compatible with compilers that already support this feature like GCC 4.4.0 (thought it’s still buggy). Nothing is perfect :-)

Fork me on GitHub