Boost logo

Boost :

From: Keith Burton (kb_at_[hidden])
Date: 2008-05-14 13:33:30


Tony D wrote:
> Anyone think this functionality belongs in boost? (I have working
> code)
>
> ENUM(X, B = N, C, D = B + C }; // or whatever
> X x1 = C;
> cout << x1 << '\n'; // outputs "C\n"
> X x2("D"); // construct from string...
> if (x2 == D) { will do }
>
> Tony
>

I do not feel qualified to comment on whether it belongs in Boost or not.
However I would like to be able to use it.

Keith


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