Is it possible to define enumalpha?

Posted by atch on Stack Overflow See other posts from Stack Overflow or by atch
Published on 2010-04-03T16:15:05Z Indexed on 2010/04/03 16:23 UTC
Read the original article Hit count: 308

Filed under:

I would like to be able to write:

cout << enumalpha << Monday;

and get printed on console:

Monday

P.S. Monday is an enum type.

© Stack Overflow or respective owner

Related posts about enums