[C++-sig] Need help on enum--a concrete example

David Abrahams dave at boost-consulting.com
Tue Sep 10 15:42:29 CEST 2002

From: "Peter Bienstman" <Peter.Bienstman at rug.ac.be>

For backwards compatibility and ease of use, I'd like my users to be able


rather than


Is this possible? I'm perfectly fine with being burnt on the stake for
being a
namespace heretic ;-)

I don't want to move them out of the enum's namespace completely. But what
if we add an "export()" member function to the enum_<> class which dumps
all of its values into the enclosing scope?

           David Abrahams * Boost Consulting
dave at boost-consulting.com * http://www.boost-consulting.com

More information about the Cplusplus-sig mailing list