Subject: Re: [boost] [C++0x] Emulation of scoped enums
From: Beman Dawes (bdawes_at_[hidden])
Date: 2009-03-05 12:44:08
On Thu, Mar 5, 2009 at 12:15 PM, Phil Endecott
> Good plan. Thoughts:
> - No need to make it a ::detail!
> - The user needs to spell out the macro if they declare a variable; can this
> be avoided?
> - How about avoiding the _START/_END stuff with e.g.
> BOOST_SCOPED_ENUM_DECL(algae, green,red,cyan);
> (I had been under the impression that varargs macros were a gcc-ism, but
> I've recently discovered that they're in c99; do non-gcc C++ compilers
> generally allow them? I don't think we can get away with allowing only
> up-to-N elements in this case.)
Hum... I hadn't considered varargs macros. If I even knew they existed:-)
Let me try that on some non-gcc compilers. I'll report back.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk