|
Boost : |
Subject: Re: [boost] Enums: naming question?
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2011-03-19 14:37:18
On Sat, Mar 19, 2011 at 4:20 AM, Vicente Botet <vicente.botet_at_[hidden]>wrote:
>
> Jeffrey Lee Hellrung, Jr.-2 wrote:
>
[...]
> > Do you mean that
> > the
> > scoping_type maps the "native enum" type of the (emulated) scoped enum
> > back
> > to the (emulated) scoped enum? I.e., native_type and scoping_type are
> > inverse metafunctions?
>
> Yes.
>
Then all I can suggest as a better name is *maybe* scoped_type or
scoped_enum_type. But scoping_type might be fine.
> Beman has created his scoped enum emulation just for this purpose, but it
> lacks some scoped enum features as it is implicitly convertible to the
> underlying type.
>
How is it otherwise different from your implementation? Does it use simpler
syntax or fewer (meta-)functions?
- Jeff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk