I got an error today because I added deprecated to an enum member.

Is there a way to achieve this, or am I out of luck? If it isn't doable, should it be?

Here's what I want:

enum PrimitiveType
{
    Points,
    Lines,
    LineStrip,
    Triangles,
    TriangleStrip,
    TriangleFan,
    Quads,

    deprecated("Use LineStrip instead.")
    LinesStrip = LineStrip,
    deprecated("Use TriangleStrip instead.")
    TrianglesStrip = TriangleStrip,
    deprecated("Use TriangleFan instead.")
    TrianglesFan   = TriangleFan
}


PrimitiveType ptype = LinesStrip; //error, Use LineStrip instead.

Reply via email to