
14 May
2008
14 May
'08
5:33 p.m.
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