Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Efficient Enum ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 13 Topic 9544 of 9775
Post > Topic >>

Efficient Enum Access...

by Thomas Lehmann <t.lehmann@[EMAIL PROTECTED] > Apr 25, 2008 at 10:48 AM

Hi,

I would like to know your opinions about
how to do best with following problem:

We can not save enums except as an integer
value and so it's possible that a value might
not be suitable when converting back to
the enum type.

How can I check wether a given value is
contained by a given enum?

- when possible I would like to keep the original enum!
- I would like keeping the capability of reading
   the enum values while debugging!
- of course, a generic approach is favorable.

best regards
Thomas

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 13 Posts in Topic:
Efficient Enum Access...
Thomas Lehmann <t.lehm  2008-04-25 10:48:42 
Re: Efficient Enum Access...
nickf3 <nickf3@[EMAIL   2008-04-25 15:47:51 
Re: Efficient Enum Access...
Thiago Adams <thiago.a  2008-04-25 15:48:52 
Re: Efficient Enum Access...
brangdon@[EMAIL PROTECTED  2008-04-26 08:47:57 
Re: Efficient Enum Access...
=?ISO-8859-1?Q?Daniel_Kr=  2008-04-26 04:43:31 
Re: Efficient Enum Access...
brangdon@[EMAIL PROTECTED  2008-04-26 08:47:32 
Re: Efficient Enum Access...
=?ISO-8859-1?Q?Daniel_Kr=  2008-04-26 16:31:39 
Re: Efficient Enum Access...
brangdon@[EMAIL PROTECTED  2008-04-27 12:39:04 
Re: Efficient Enum Access...
=?ISO-8859-1?Q?Daniel_Kr=  2008-04-28 01:55:51 
Re: Efficient Enum Access...
Seungbeom Kim <musiphi  2008-04-26 08:42:16 
Re: Efficient Enum Access...
Alberto Ganesh Barbati &l  2008-04-26 08:43:12 
Re: Efficient Enum Access...
Tony Delroy <tony_in_d  2008-04-28 02:13:22 
Re: Efficient Enum Access...
Marsh Ray <marsh527@[E  2008-05-02 12:48:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 23:33:27 CDT 2008.