We can't use constexpr (yet), MSVC 2013 doesn't support it. Would it be possible to fold the Max values into the enums? http://reviews.llvm.org/D9057 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/