From: cbird Newsgroups: comp.os.msdos.djgpp Subject: enumerated types overloading Date: Mon, 27 Jan 1997 14:40:50 -0700 Organization: Brigham Young University Lines: 19 Message-ID: <32ED20E2.40F3@byu.edu> NNTP-Posting-Host: byu-0718.ln.byu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I'm trying to compile some stuff I wrote using BC4.5 using DJGPP and I'm running into problems with enumerated types and the ++ and -- operators. basically I've got something like this 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. I'm somewhat familiar with C++, but I've never overloaded any operators because with borland it automatically overloaded the enumerated types. Any help with this would be greatly appreciated. thanx! Christian Bird cbird AT byu DOT edu