Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #9039
| From | "Bo Persson" <bop@gmb.dk> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: New strongly type enum proposal featuring inherited enums |
| Date | 2011-08-18 14:30 +0200 |
| Message-ID | <9b4evdF34cU1@mid.individual.net> (permalink) |
| References | <4e49ea26$2@news.x-privat.org> <j2gbf7$78s$1@dont-email.me> <2d0413bb-7638-419b-938c-b0ca3f7145c3@t29g2000vby.googlegroups.com> |
Fred wrote:
> On Aug 17, 5:16 am, Victor Bazarov <v.baza...@comcast.invalid>
> wrote:
>> On 8/16/2011 11:28 PM, Phil Bouchard wrote:
>>
>>> Is it too late to change the strongly type enum?[..]
>>
>> We have a new Standard (ISO/IEC 14882:2011) as of August 12th, so
>> it's late for that one, but there is always the next Standard.
>>
>> V
>> --
>> I do not respond to top-posted replies, please don't ask
>
> Why wasn't it designed using a style similar to templates:
>
> enum class <unsigned long> Val { E1, E2, E3, E4 };
It was designed to follow existing implementations. It is already
available in MS C++/CLI, and they proposed to use the same syntax for
ordinary C++.
Bo Persson
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
New strongly type enum proposal featuring inherited enums Phil Bouchard <philippe@fornux.com> - 2011-08-16 21:28 -0600
Re: New strongly type enum proposal featuring inherited enums Victor Bazarov <v.bazarov@comcast.invalid> - 2011-08-17 08:16 -0400
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard <philippe@fornux.com> - 2011-08-17 14:25 -0400
Re: New strongly type enum proposal featuring inherited enums "Bo Persson" <bop@gmb.dk> - 2011-08-18 14:32 +0200
Re: New strongly type enum proposal featuring inherited enums Fred <fred.l.kleinschmidt@boeing.com> - 2011-08-17 11:31 -0700
Re: New strongly type enum proposal featuring inherited enums "Bo Persson" <bop@gmb.dk> - 2011-08-18 14:30 +0200
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard <philippe@fornux.com> - 2011-08-17 18:01 -0400
Re: New strongly type enum proposal featuring inherited enums Marc <marc.glisse@gmail.com> - 2011-08-17 23:16 +0000
Re: New strongly type enum proposal featuring inherited enums Marc <marc.glisse@gmail.com> - 2011-08-17 23:19 +0000
Re: New strongly type enum proposal featuring inherited enums Phil Bouchard <philippe@fornux.com> - 2011-08-18 00:07 -0400
Re: New strongly type enum proposal featuring inherited enums Daniel Krügler <daniel.kruegler@googlemail.com> - 2011-08-18 07:54 -0600
Re: New strongly type enum proposal featuring inherited enums Pete Becker <pete@versatilecoding.com> - 2011-08-18 07:51 -0600
Re: New strongly type enum proposal featuring inherited enums Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2011-08-18 07:53 -0600
Re: New strongly type enum proposal featuring inherited enums Marcel Müller <news.5.maazl@spamgourmet.com> - 2011-08-18 07:52 -0600
csiph-web