Mail Archives: djgpp/1997/01/28/05:34:29
On Mon, 27 Jan 1997, cbird wrote:
> enum alpha {a, b, c, d, e, f};
>
> in my header and when I try something like:
>
> alpha letter = a;
> a++;
>
> I get an error saying no postincrement operator defined or something
> along those lines.
IMHO, this is perfectly justified error message. You have defined a new
data type called alpha, but didn't define the meaning of the ++ operator
on that data type. C++ doesn't let you use that operator, because it
doesn't know which code it shoule generate in this case.
- Raw text -