When using an enum in C++, I like to use EnumName::Value (as opposed to just Value). In C++ this is either a warning or an error, depending on compiler settings.
In XCode, what’s the name of the setting that will allow me to not have this come up as a compiler error?

(Taking the ErrorLevel:: away resolves the error)
if you use c++11, your syntax is correct:
Also note, that if you use c++11, you can require usage of
EnumName::Valueinstead of justValueby usingenum classinstead ofenum:otherwise, you can wrap your enum declaration with namespace