
5 Mar
2009
5 Mar
'09
5:44 p.m.
On Thu, Mar 5, 2009 at 12:15 PM, Phil Endecott <spam_from_boost_dev@chezphil.org> wrote:
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. Thanks, --Beman