Jonathan Polley wrote:
>
> On Thursday, March 28, 2002, at 06:12 AM, David Megginson wrote:
>
>> Jonathan Polley writes:
>>
>>> .\src\Input/input.hxx(321) : error C2248: 'MAX_MOUSE_BUTTONS' : cannot
>>> access private enumerator declared in class 'FGInput'
>>> .\src\Input/input.hxx(250) : see declaration of
>>> 'MAX_MOUSE_BUTTONS'
>>>
>>> Changing the enumeration to a series of #defines solved that problem.
>>
>>
>> [expletive deleted] The only reason I use enums instead of constants
>> is to work around earlier MSVC bug reports, since MSVC barfed on
>> constants.
>
>
> This brings about the philosophical question, Is is possible to work
> around ALL MSVC bugs?
Could you try this one:
define the const in the header file:
class foo {
const doube bar;
}
and in the .cxx file:
const double foo::bar = 3.0;
If this works for MSVC I think we can handle the problem.
Erik
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel