Thanks Ehsan,
I sure thought that I had already tried your solution.
So I typed it in, so that I could report the specific compiler error for you.  But now 
it works!
-Jean

> -----Original Message-----
> From: Ehsan Akhgari [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 22, 2004 7:11 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [msvc] const enum data member
> 
>  
> Try:
> 
> class CMyClass
> {
> public:
> 
>       enum DATASTORED
>       {
>          FIVEHUNDRED,
>          ONEHUNDRED,
>       };
> 
>       CMyClass();
>       CMyClass(DATASTORED ds);
> 
>       const enum DATASTORED m_dataStored;
> };
> 
> // .cpp:
> CMyClass::CMyClass(CMyClass::DATASTORED ds) :
>     m_dataStored(ds)
> {}
> 
> 
> -------------
> Ehsan Akhgari
> 
> Farda Technology (http://www.farda-tech.com/)
> 
> List Owner: [EMAIL PROTECTED]
> 
> [ Email: [EMAIL PROTECTED] ]
> [ WWW: http://www.beginthread.com/Ehsan ]
> 
> Light without eyes illuminates nothing.
> 
> 
> 
> 
> _______________________________________________
> msvc mailing list
> [EMAIL PROTECTED]
> See 
> http://beginthread.com/mailman/listinfo/msvc_beginthread.com 
> for subscription changes, and list archive.
> 


Reply via email to