Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #8090
| From | Philipp Kraus <philipp.kraus@flashpixx.de> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | enum escaping keywords |
| Date | 2011-07-22 18:52 +0200 |
| Organization | 1&1 Internet AG |
| Message-ID | <j0c9t4$e8p$1@online.de> (permalink) |
Hello,
I create a enum type with language codes like:
enum lang {
en,
it,
de,
asm,
or
}
but some codes are keywords (asm, or). How can I escape them, so that I
can use them like
lang::or or lang::asm ?
Thanks
Phil
Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread
enum escaping keywords Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-07-22 18:52 +0200
Re: enum escaping keywords "Balog Pal" <pasa@lib.hu> - 2011-07-22 19:19 +0200
Re: enum escaping keywords Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-07-22 19:35 +0200
Re: enum escaping keywords Victor Bazarov <v.bazarov@comcast.invalid> - 2011-07-22 13:52 -0400
Re: enum escaping keywords James Kanze <james.kanze@gmail.com> - 2011-07-22 13:02 -0700
Re: enum escaping keywords "James" <no@spam.invalid> - 2011-07-22 16:37 -0700
csiph-web