Tech Off Post

Single Post Permalink

View Thread: Enum C# vs C++
  • User profile image
    cro

    In C# this is perfectly legal :

    enum A
    {
        None,
        Value1,
        Value2
    }

    enum B
    {
        None,
        Sometype1,
        Sometype2
    }

    C++ complain that None is already define, so is it possible to accomplish the same thing in C++ ?

    Thanks