Boost logo

Boost :

From: Roman Yakovenko (roman.yakovenko_at_[hidden])
Date: 2005-05-15 00:25:55


> -----Original Message-----
> From: loic.actarus.joly_at_[hidden]
> [mailto:loic.actarus.joly_at_[hidden]]
> Sent: Friday, May 13, 2005 1:22 PM
> To: boost_at_[hidden]
> Subject: ACT SPAM:[boost] [preprocessor] What syntax to
> present to the user
>
>
> Hello everybody,
>
> I'm trying to use the boost preprocessor library to allow the user to
> define "rich" enums, for instance enums that cannot be
> converted to int,
> whose values can be displayed in human readable form on a stream...
>
> I think I have to use macro to ease the writing of such enums, and I
...

There is a better approach. Try to search "smart enums" within boost mailing list archive

Roman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk