Boost logo

Boost :

Subject: Re: [boost] enum / string translation
From: Celtic Minstrel (celtic.minstrel.ca_at_[hidden])
Date: 2009-07-27 11:37:04


My own solution for scoping enums has been to enclose it in a
namespace rather than a class, and import the name of the actual enum.
The only disadvantage is that the namespace must have a different name
than the enum; perhaps your solution is better.

Of course, C++0x enum classes beat either option.


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