That's correct, but fully qualifying the name should also be correct, unless the lookup rules state that in that context UpdateMode refers to the enum, so UpdateMode::UpdateMode refers to a member of the UpdateMode enum.Since it's inside the namespace, it's not required to explicitly specify the namespace's name within the declaration.