Use C++11's enum class instead of enum.