Operators overloading for enums.

Posted by atch on Stack Overflow See other posts from Stack Overflow or by atch
Published on 2010-04-03T14:09:57Z Indexed on 2010/04/03 14:13 UTC
Read the original article Hit count: 513

Filed under:
|
|

Is it possible to define operators for enums? For example I have enum Month in my class and I would like to be able to write ++my_month.
Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about operators