delorie.com/djgpp/bugs/show.cgi | search |
I have found that defining an enumerated variable and then incrementing it using the simple post-increment operator (ie. happy++ where happy is the enum variable) causes an error. However, using "happy=happy+1" works fine.
the exact error is that there is no post-increment operator for type. i am assuming the compiler lacks a routine to handle post-incrementation of enumerated variables.
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |