Boost logo

Boost :

Subject: Re: [boost] [C++0x] Emulation of scoped enums
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-03-06 01:37:13


----- Original Message -----
From: "Felipe Magno de Almeida" <felipe.m.almeida_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, March 06, 2009 1:42 AM
Subject: Re: [boost] [C++0x] Emulation of scoped enums

>
> On Thu, Mar 5, 2009 at 9:26 PM, Matt Calabrese <rivorus_at_[hidden]> wrote:

>> While I agree that the current interface is kind of ugly,
>> I still think it's the best option available.
>
> I don't really mind the current interface. What I find uglier
> is using a macro to use the enum type.

I don't think there is a better solution. You need to mask the fact that a enum type in C++0x is name scope and a type and can not be in C++03.

The initial proposal seems a good compromise to me.
Vicente


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