T
toton
Hi,
I have a bunch of enums, which I want to stream with their names
rather than the enum value (just like bool has a facility in the
stream)
Any facility available in standard library / boost ?
something like,
enum TYPE{
PRINTED,CURSIVE,MIXED
};
and
ostream << PRINTED will print "PRINTED" if some flag is set to
ostream ...
abir
I have a bunch of enums, which I want to stream with their names
rather than the enum value (just like bool has a facility in the
stream)
Any facility available in standard library / boost ?
something like,
enum TYPE{
PRINTED,CURSIVE,MIXED
};
and
ostream << PRINTED will print "PRINTED" if some flag is set to
ostream ...
abir