Boost logo

Boost :

Subject: Re: [boost] Scoped Enum Emulation
From: Joshua Boyce (raptorfactor_at_[hidden])
Date: 2012-01-24 20:40:38


On Wed, Jan 25, 2012 at 9:17 AM, Vicente J. Botet Escriba <
vicente.botet_at_[hidden]> wrote:

>
> Hi,
>
> I'm working with a different emulation which uses classes. For example
>
> <CODE SNIPPED>

>
>
> While this is not yet a complete emulation of scoped enums, it has the
> advantage of that there is no need to use a macro to name the strong type.
>
> I don't know if it will be confusing to put provide both approaches in a
> single mini library.
>
> Best,
> Vicente
>
>
Out of curiosity, what are the cons of this implementation compared to the
existing one? (The pros seem fairly obvious, but I think I'm missing the
downside...)


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