[C++-sig] Re: Question regarding objects of enums

gideon may gideon at computer.org
Fri Aug 15 08:36:14 CEST 2003


Thanks!

PS,

What is the release schedule for Boost 1.31.0 ? I've noticed a lot of
traffic on the boost list on regression tests, but haven't seen a
time plan lately. Am looking forward releasing my next version with
boost 1.31.0 ;-).

--David Abrahams <dave at boost-consulting.com> wrote:

> gideon may <gideon at computer.org> writes:
>
>> Hi Dave,
>>
>> I tried to compile my library with the current cvs version and
>> stumbled on a problem with enums. The following worked with
>> boost 1.30.0 but fails with the cvs version (using MSVC 7):
>>
>> class MyClass {
>>   public:
>>     enum Direction {
>>         UP, DOWN
>>     };
>> };
>>
>> enum  Color {
>>     RED, GREEN, BLUE
>> };
>>
>>
>> void make_object()
>> {
>>     object o1 = object(RED);         // Works
>>     object o2 = object(MyClass::UP); // Fails
>> }
>>
>> TIA,
>>
>> Gideon
>
> VC7 bug.  Fixed in CVS with enclosed patch.
>
>








More information about the Cplusplus-sig mailing list