
19 Mar
2011
19 Mar
'11
6:37 p.m.
On Sat, Mar 19, 2011 at 4:20 AM, Vicente Botet <vicente.botet@wanadoo.fr>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