List of an enum in visual c++
See the question and my original answer on StackOverflowIf you are targeting c++/cli, this code compiles fine (note the enum is now a managed enum, not an unmanaged one like the one you define):
using namespace System::Collections::Generic;
public enum class Name
{
one, two, three,
};
void GetInput(List<Name> names);