int main()
{
int testScores[static_cast<int>(StudentNames::MAX_STUDENTS)]; // allocate 6 integers
testScores[static_cast<int>(StudentNames::STAN)] = 76;
}
below regular enum with namespace negates use of static_cast with enum Class x (easier). How does namespacing this work though? I know the regular enum implicitly converts to integer, but what does the namespacing do?